@tempots/color

lab2rgb() function

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

Signature:

lab2rgb: (lab: LAB, whiteReference?: [number, number, number]) => RGB

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

The converted color in RGB color space.