@tempots/color

rgb2luv() function

Converts an RGB color to LUV color space.

Signature:

rgb2luv: (rgb: RGB, whiteReference?: [number, number, number]) => LUV

Parameters

Parameter

Type

Description

rgb

RGB

The RGB color to convert.

whiteReference

[number, number, number]

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

Returns: LUV

The converted LUV color.