@tempots/color

cmyk2lab() function

Converts a CMYK color to LAB color using a specified white reference.

Signature:

cmyk2lab: (cmyk: CMYK, whiteReference?: [number, number, number]) => LAB

Parameters

Parameter

Type

Description

cmyk

CMYK

The CMYK color to convert.

whiteReference

[number, number, number]

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

Returns: LAB

The LAB color representation of the input CMYK color.