WCAG criterion 1.4.3: Contrast (Level AA) recommends text, images of text, and graphics (e.g. icons) have a contrast ratio of at least 4.5:1. Always check your colors and make your content readable regardless of a user’s ability or circumstance.
Most automated accessibility checkers or browser plugins will check color contrast. However, you should try to avoid contrast issues from being flagged altogether!
Use dedicated color checkers to determine acceptable color combinations before implementation.
Note: Keep in mind that opacity and font weight affect contrast too.
Recommended tools:
❌ Figure: Bad example - Black text on SSW Red fails contrast checks
✅ Figure: Good example - White text on SSW Red passes contrast checks
Browser DevTools provide a quick way to check color contrast directly on a live website.
How to check contrast in Google Chrome:
Figure: Google Chrome DevTools showing the accessibility information and contrast ratio for inspected text
More info on Docs | Chrome | DevTools | Accessibility | Make your website more readable.
Note: This is also available in Microsoft Edge and Firefox, although the interface may differ slightly.
There are few acceptable exceptions to the contrast criteria, including:
Even in these circumstances it’s good practice to make your text as readable as possible.