@tempots/color
rgb2lch() function
Converts an RGB color to LCH color.
Signature:
rgb2lch: (rgb: RGB, whiteReference?: [number, number, number]) => LCH
Parameters
Parameter |
Type |
Description |
---|---|---|
rgb |
The RGB color to convert. | |
whiteReference |
[number, number, number] |
(Optional) The white reference color. Defaults to WHITE_REFERENCE. |
Returns: LCH
The LCH color.