rgb8ToOklab
rgb8ToOklab(
color):Oklab
Defined in: packages/math-color/src/conversions/rgb8-oklab.ts:16
Converts an 8-bit sRGB colour to OKLab.
The composition every palette-matching caller needs — 8-bit sRGB is what a terminal, a CSS hex literal and an image pixel all speak, and OKLab is where distances mean something. Assumes sRGB: a colour in another profile has to go through rgb8ToRgb1 and linearRgbToOklab itself.