@tempots/color

lch2xyz() function

Converts a color in the LCH color space to the XYZ color space.

Signature:

lch2xyz: (lch: LCH, whiteReference?: [number, number, number]) => XYZ

Parameters

Parameter

Type

Description

lch

LCH

The color in the LCH color space.

whiteReference

[number, number, number]

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

Returns: XYZ

The color in the XYZ color space.