@tempots/color

lch2hsl() function

Converts a color in LCH color space to HSL color space.

Signature:

lch2hsl: (lch: LCH, whiteReference?: [number, number, number]) => HSL

Parameters

Parameter

Type

Description

lch

LCH

The LCH color to convert.

whiteReference

[number, number, number]

(Optional) The white reference color. Defaults to WHITE_REFERENCE.

Returns: HSL

The color in HSL color space.