Skip to content

oklabToRgb(lab): Node <"vec4">

Defined in: packages/nodes/src/color/oklab.ts:148

Convert OKLAB to sRGB (gamma-encoded). Applies the exact IEC 61966-2-1 linear->sRGB transfer (sRGBTransferOETF), clamping the linear result to [0,1] first.

Node <"vec4">

OKLAB color as vec4(L, a, b, alpha)

Node <"vec4">

sRGB color as vec4(r, g, b, alpha)

oklabToRgb(oklabColor)