Skip to main content

Function: oklabToColor()

oklabToColor(lab): string

Defined in: src/utils/oklab.ts:129

Convert an Oklab [L, a, b] array to a color (hex string).

Channels that fall outside the sRGB gamut are clamped to 0..255.

Parameters​

lab​

Oklab

Returns​

string