@tempots/color

hsluv2hsl() function

Converts an HSLuv color to an HSL color.

Signature:

hsluv2hsl: (hsluv: HSLuv, whiteReference?: [number, number, number]) => HSL

Parameters

Parameter

Type

Description

hsluv

HSLuv

The HSLuv color to convert.

whiteReference

[number, number, number]

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

Returns: HSL

The converted HSL color.