Check whether two colours have enough contrast to meet the WCAG accessibility standard, and find the closest text colour that does.
In this article
Text that is hard to read isn’t just annoying. For the millions of people with low vision or colour blindness, and for anyone reading a phone screen in bright sunlight, poor contrast can make a website unusable. It is also one of the most common accessibility failures. Pick or type a text colour and a background colour in the boxes above and we’ll tell you whether the pair is easy enough to read.
What the results mean
The contrast ratio runs from 1 : 1 (no difference at all) to 21 : 1 (black on white). The Web Content Accessibility Guidelines (WCAG) set the minimum ratios:
- Level AA, normal text: 4.5 : 1. This is the standard most websites are expected to meet, and the one used in accessibility law and public sector requirements.
- Level AA, large text: 3 : 1. “Large” means about 24 pixels, or about 19 pixels if bold.
- Level AAA: 7 : 1 for normal text and 4.5 : 1 for large text. A higher standard that is worth aiming for when you can.
- Buttons, icons and form borders: 3 : 1 against the colours next to them.
Good to know
- If your pair fails, we suggest the closest text colour of the same hue that passes AA, so you can keep your brand feel while fixing readability.
- Light grey text on white and white text on pastel or bright colours are the usual culprits. Brand colours often need a darker variation for text.
- Contrast is only one part of accessibility. Clear headings, descriptive link text, alt text on images and keyboard-friendly menus all matter too.
- Everything is worked out in your browser. Nothing you type is sent to us or stored. For other website checks, try our meta tag checker.
- Want to know how accessible your website is? Contact our support team and we’ll be happy to help.
Was this article helpful?
Our help articles are written for O’Brien Media customers. If you’re a customer and this didn’t answer your question, contact our support team or call 01793 239 239 and we’ll be happy to help. Our support is for O’Brien Media customers only. If you’re not a customer yet, get in touch and we can talk about how we can help.