OKLab Color Palette
A 64×64 visualization of the OKLab color space with 4 bits per channel (16 levels each for L, a, b).
Layout
The palette is organized as a 4×4 grid of sub-tables (16 total), one for each L (lightness) value:
| Col 0 | Col 1 | Col 2 | Col 3 | |
|---|---|---|---|---|
| Row 0 | L=0.00 | L=0.07 | L=0.13 | L=0.20 |
| Row 1 | L=0.27 | L=0.33 | L=0.40 | L=0.47 |
| Row 2 | L=0.53 | L=0.60 | L=0.67 | L=0.73 |
| Row 3 | L=0.80 | L=0.87 | L=0.93 | L=1.00 |
Within each 16×16 sub-table:
- Horizontal axis (a): green ← → red (-0.4 to +0.4)
- Vertical axis (b): blue ← → yellow (-0.4 to +0.4)
Out of Gamut
Colors that fall outside the sRGB gamut are shown with a checkerboard pattern. The displayed color is the clamped RGB value.
OKLab
OKLab is a perceptually uniform color space designed by Björn Ottosson. Unlike Lab, distances in OKLab correspond more accurately to perceived color differences, making it ideal for:
- Color interpolation
- Palette generation
- Image processing