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.
- 501.1
- 1001.2
- 2001.5
- 3001.9
- 4002.8
- 5004.2
- 6006.4
- 7009.0
- 80012.3
- 90015.9
- 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.