Skip to content

linearRgbToOklab

linearRgbToOklab<SE, SL>(value, rgbProfile): Oklab

Defined in: packages/math-color/src/conversions/oklab-lrgb.ts:32

Converts RGB values in the range [0, 1] to OKLab using the specified RGB color space profile.

SE extends string

SL extends string

RgbCoords

The RGB color in the range [0, 1].

RgbProfile<SE, SL>

The RGB color space profile of the input RGB color.

Oklab

The corresponding OKLab color.