@tempots/color
srgb2hsluv() function
Converts an sRGB color value to an HSLuv color value.
Signature:
srgb2hsluv: (srgb: SRGB, whiteReference?: [number, number, number]) => HSLuv
Parameters
Parameter |
Type |
Description |
---|---|---|
srgb |
The sRGB color value to convert. | |
whiteReference |
[number, number, number] |
(Optional) The white reference value. Defaults to WHITE_REFERENCE. |
Returns: HSLuv
The converted HSLuv color value.