# OKLCH Token & Contrast Inspector

> OKLCH ramps with live contrast checks.

Canonical: https://someshks.com/experiments/oklch-token-inspector  
Author: Somesh Kesarla Suresh  
Published: 2026-08-15

| Fact | Detail |
| --- | --- |
| Stack | OKLCH, W3C design tokens, WCAG 2.2 |

HSL lies about lightness. A yellow and a blue at the same HSL lightness look nothing alike. In OKLCH, equal steps look equal, so you can generate a ramp instead of painting it.

> Interactive on the web: Generates an 11-step OKLCH ramp and checks WCAG 2.2 contrast as you change it.

The inspector builds ramps the way this site's tokens are built: fixed lightness per step, chroma eased towards the ends to stay in sRGB, and every pair checked against 4.5:1 for text and 3:1 for UI. Failures are named in words, not just red.

## Why it matters

A generated ramp can be regenerated. Change the brand hue and every step and contrast check follows. This site runs the same check in CI.
