Skip to main content

Function: oklabToLinearSrgb()

oklabToLinearSrgb(L, a, b): [number, number, number]

Converts Oklab color values to linear sRGB.

Parameters

ParameterTypeDescription
LnumberThe L component of Oklab.
anumberThe a component of Oklab.
bnumberThe b component of Oklab.

Returns

[number, number, number]

An array of [r, g, b] values in linear sRGB color space (0-1).

Defined in

conversions/components/oklab-linear-srgb.ts:10