Skip to main content

Function: oklchToColor()

oklchToColor(lch): string

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

Convert an Oklch [L, C, h] array (hue in degrees) to a color (hex string).

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

Parameters​

lch​

Oklch

Returns​

string