Modern CSS Color

Explore oklch(), color-mix(), and perceptually uniform palettes — the color tools design systems should be built on.

1 · oklch() Explorer

L (lightness 0–1), C (chroma 0–0.4), H (hue 0–360°). Compare the real oklch() swatch with an hsl() string using the same numbers.

0.65
0.15
240°
oklch() — perceptual
hsl() — same numbers

Fixed L & C — sweep hue: OKLCH stays equally light; HSL does not

oklch(0.75 0.18 …)
hsl(… 90% 50%)

2 · color-mix() Mixer

Mix two colors in oklch space for perceptually even blends. Drag the ratio — output is a live CSS string you can paste into tokens.

50%

Switch color space — notice srgb/hsl midpoints look muddier than oklch.

3 · Harmonious Palette

Lock lightness and chroma, step hue evenly — the recipe for accessible, consistent design tokens.

0.62
0.12
6
30°
CSS custom properties