---
id: fast-colors.labtorgb
title: labToRGB() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [labToRGB](./fast-colors.labtorgb.md)

## labToRGB() function

Converts a [ColorLAB](./fast-colors.colorlab.md) to a [ColorRGBA64](./fast-colors.colorrgba64.md)

<b>Signature:</b>

```typescript
export declare function labToRGB(lab: ColorLAB, alpha?: number): ColorRGBA64;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  lab | [ColorLAB](./fast-colors.colorlab.md) | the LAB color to convert |
|  alpha | number | the alpha value |

<b>Returns:</b>

[ColorRGBA64](./fast-colors.colorrgba64.md)

## Remarks

Note that the xyz color space (which the conversion from LAB uses) is significantly larger than sRGB. As such, this can return colors rgb values greater than 1 or less than 0
