Home

OKLCH Token & Contrast Inspector

OKLCH ramps with live contrast checks.

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.

  1. 501.1
  2. 1001.2
  3. 2001.5
  4. 3001.9
  5. 4002.8
  6. 5004.2
  7. 6006.4
  8. 7009.0
  9. 80012.3
  10. 90015.9
  11. 95018.2

Step 800 text on step 50

Body copy has to clear 4.5:1. Icons and borders need 3:1.

Body text (4.5:1)
11.39passes
Large text and UI (3:1)
11.39passes

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.