Colour Converter
Convert a colour between HEX, RGB and HSL — and see straight away whether text on it will pass accessibility contrast rules.
Three ways of writing one colour
- HEX —
#1A6AFF. Compact, universal in CSS, unreadable to humans. - RGB —
rgb(26, 106, 255). The same three numbers in decimal, and the form that takes an alpha channel. - HSL —
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.
Why contrast is shown
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.
Reading the ratio
| 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. |
Frequently Asked Questions
Other free tools
Book your free call
Free, 30 minutes. Pick a date & time and we'll call you.
Open Booked Calls run 11:00 AM – 8:00 PM, 11:00 AM – 1:00 PM at weekends
Free · No commitment · Confirmed instantly by email