Color Format Playground

One dye, four labels: type the colour of Mr. Harun’s sign in any format, the browser reads it, then it is written as hex, rgb, hsl and oklch with its WCAG…

Why it matters

A format is not just a writing style. hsl is easy to tweak, oklch makes palettes with even lightness, alpha makes overlays without fading the text, and WCAG contrast decides whether your text can be read.

The key idea

Lightness 50% in hsl is not the same lightness to the eye

Common mistakes

Try it in this playground