Convert a colour between HEX, RGB and HSL — and see straight away whether text on it will pass accessibility contrast rules.
#1A6AFF. Compact, universal in CSS, unreadable to humans.rgb(26, 106, 255). The same three numbers in decimal, and the form that takes an alpha channel.hsl(219, 100%, 55%). Hue, saturation, lightness. The only one where you can make a colour lighter by changing a single number, which is why design systems are built on it.WCAG sets a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. Below that, text becomes hard to read for anyone with reduced vision — and in bright sunlight, for everyone.
Brand colours frequently fail. A mid-tone blue that looks fine in a mockup can sit at 3.2:1 against white, which passes for a heading and fails for body copy. Knowing before you ship is cheaper than a redesign after an audit.
| Ratio | Meaning |
|---|---|
| Below 3:1 | Fails everything. Decorative use only. |
| 3:1 | Large text (18pt+) at AA. |
| 4.5:1 | Normal body text at AA — the usual target. |
| 7:1 | AAA. Worth aiming for on long-form reading. |
Pick a date & time — we'll call you
Free consultation · No commitment · Responds within 2 hours