@tempots/color

lab2srgb() function

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

Signature:

lab2srgb: (lab: LAB, whiteReference?: [number, number, number]) => SRGB

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

The color converted to SRGB color space.