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

[@microsoft/fast-colors](./fast-colors.md) &gt; [labToLCH](./fast-colors.labtolch.md)

## labToLCH() function

Converts a [ColorLAB](./fast-colors.colorlab.md) to a [ColorLCH](./fast-colors.colorlch.md)

<b>Signature:</b>

```typescript
export declare function labToLCH(lab: ColorLAB): ColorLCH;
```

## Parameters

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

<b>Returns:</b>

[ColorLCH](./fast-colors.colorlch.md)

## Remarks

The discontinuity in the C parameter at 0 means that floating point errors will often result in values near 0 giving unpredictable results. EG: 0.0000001 gives a very different result than -0.0000001 In cases where both a and b are very near zero this function will return an LCH color with an H of 0 More info about the atan2 function: [https://en.wikipedia.org/wiki/Atan2](https://en.wikipedia.org/wiki/Atan2)
