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

[@microsoft/fast-colors](./fast-colors.md) &gt; [rgbToLCH](./fast-colors.rgbtolch.md)

## rgbToLCH() function

Convert a [ColorRGBA64](./fast-colors.colorrgba64.md) to a [ColorLCH](./fast-colors.colorlch.md)

<b>Signature:</b>

```typescript
export declare function rgbToLCH(rgb: ColorRGBA64): ColorLCH;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  rgb | [ColorRGBA64](./fast-colors.colorrgba64.md) | the rgb color to convert |

<b>Returns:</b>

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

## Remarks

The alpha channel of the input is ignored
