huebic
Color science / Perceptual spaces

Lab Matrix

Slice the perceptual color space like a loaf. Each square is a plane of constant lightness; colors outside the chosen gamut (sRGB or Display P3) are left empty. Notice how the displayable island leans toward blue-violet in the dark slices, toward red in the middle and toward yellow-green near white. Theory: CIELAB · OKLab →

a*b* plane
L*
Click to set the foreground · grid every 20 units
Matrix · L = 10 … 90
Hue leaf · L* vs C*
h°
How it worksslicing the colors we can see

Slicing color like a loaf

Lab arranges colors in three directions: dark to light, green to red, and blue to yellow. Picture all colors as a loaf of bread, with dark at the bottom and light at the top.

Each square is one slice: every color at the same lightness. The big view shows one slice up close; move the slider to go up and down the loaf.

Why the empty areas?

The empty space is made of colors a screen can't show. Pick sRGB for an ordinary screen or Display P3 for a modern phone or Mac, which can show a bit more.

Notice how the island of colors moves as you go up: dark slices lean towards blue and violet, middle ones towards red, light ones towards yellow-green. That's why there's no such thing as a bright navy or a dark lemon yellow.

The three views

The big slice: hover for exact values, click to make that color your foreground. Matrix: nine slices side by side, from dark to light; click one to open it. Same scale keeps them comparable, Fit each zooms every slice to its own colors.

Hue leaf cuts the loaf the other way: one hue, from grey on the left to as strong as possible on the right, at every lightness. It shows how strong each hue can get at each lightness.

CIELAB or OKLab?

CIELAB (from 1976) is the standard in print, paint and Photoshop. OKLab (from 2020) is a newer version that matches the eye more evenly, especially for blues. Both tell the same story; switch between them to compare.