@tempots/color

lab2hsl() function

Converts a color from LAB color space to HSL color space.

Signature:

lab2hsl: (lab: LAB, whiteReference?: [number, number, number]) => HSL

Parameters

Parameter

Type

Description

lab

LAB

The LAB color to convert.

whiteReference

[number, number, number]

(Optional) The white reference used for the conversion. Defaults to WHITE_REFERENCE.

Returns: HSL

The color converted to HSL color space.