COLOR SCIENCE LAB · 2026

Color Lab

Turn “looks about right” into measurable decisions. This workspace uses perceptually uniform OKLCH, CIEDE2000 difference and APCA contrast. Everything runs locally in your browser — no color value is uploaded.

OKLCH / OKLab Converter

Enter any CSS color — HEX, rgb(), hsl(), oklch() or a keyword — and get OKLCH, OKLab and gamut status instantly. Modern browsers accept oklch() directly in CSS.

HEX—
OKLCH—
OKLab—
Gamut—

Color Difference · ΔE00

Compare two colors in perceptual terms. CIEDE2000 below 1 is imperceptible; for brand replacements stay under 2.3, and cross-check with the OKLab ΔEok value.

ΔE00 · CIEDE2000—
ΔEok · OKLab—
Verdict—

Display P3 Gamut Check

Many colors that look vivid on a P3 display cannot be reproduced in sRGB. This tool tells you whether a color sits in sRGB, P3, or beyond P3, and gives you an sRGB-safe substitute that preserves lightness and hue.

—

—

Perceptual OKLCH Scale

Eleven steps from 50 to 950, generated in OKLCH: lightness advances by perception, chroma rises and falls with brightness. Much closer to Tailwind or Radix scales than stretching HSL lightness linearly.


          

Why OKLCH?

HSL “50% lightness” does not mean the same visual brightness across hues: hsl(60 100% 50%) yellow is far brighter than hsl(240 100% 50%) blue. OKLCH places colors in a space closer to human perception, so equal-lightness steps and equal-chroma harmonies are far more reliable. CSS Color 4 supports native oklch() in current browsers.

For legacy devices, convert back to HEX on this page. To avoid a muddy midpoint from orange to blue, compare interpolation stops in the CSS gradient generator.