@tempots/color

hsluv2xyz() function

Converts an HSLuv color to XYZ color space.

Signature:

hsluv2xyz: (hsluv: HSLuv, whiteReference?: [number, number, number]) => XYZ

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: XYZ

The converted XYZ color.