@tempots/color

lab2cmyk() function

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

Signature:

lab2cmyk: (lab: LAB, whiteReference?: [number, number, number]) => CMYK

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

The color converted to CMYK color space.