@tempots/color

lab2xyz() function

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

Signature:

lab2xyz: (lab: LAB, whiteReference?: [number, number, number]) => XYZ

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

The color converted to XYZ color space.