Free tool

Color Contrast Checker

Check whether your text is readable against its background. Enter two colors to see the contrast ratio and whether it meets the WCAG 2.2 AA and AAA accessibility guidelines.

Large heading text

This is normal body text. Good contrast makes content easier to read for everyone, especially people with low vision and anyone using a screen in bright sunlight.

Small print, captions and footnotes

Button
5.61:1Good
Contrast ratio (1:1 to 21:1)
AA normal textneeds 4.5:1
Pass
AA large textneeds 3:1
Pass
AAA normal textneeds 7:1
Fail
AAA large textneeds 4.5:1
Pass
UI components & iconsneeds 3:1
Pass

What is a contrast ratio?

A contrast ratio compares how bright two colors appear. It runs from 1:1 (two identical colors, completely unreadable) to 21:1 (pure black on pure white). The higher the number, the easier text is to read. The calculation uses the relative luminance of each color, which accounts for the fact that our eyes are far more sensitive to green light than to blue.

WCAG contrast requirements

The Web Content Accessibility Guidelines (WCAG) are the international standard for accessible websites. They are referenced by laws such as the European Accessibility Act, the UK Equality Act and the Americans with Disabilities Act. The contrast rules are:

ContentLevel AALevel AAA
Normal text (under 24px, or under 18.66px bold)4.5:17:1
Large text (24px and above, or 18.66px bold and above)3:14.5:1
Icons, form borders, focus rings and other UI parts3:1–
Logos and purely decorative elementsNo requirement

AA is the level most organisations aim for and the one usually written into law. AAA is stricter and is recommended for long-form reading and for sites where many users have low vision.

How to fix colors that fail

  • Darken the text or lighten the background (or the other way round on dark themes). Changing lightness while keeping the hue keeps the color looking on-brand. The suggested fix above does exactly that.
  • Make text larger or bolder. Large text only needs 3:1, so headings can use lighter brand colors that body text cannot.
  • Keep brand colors for accents. If a bright brand color fails as text, use it for buttons, borders or highlights, and put white or dark text on top.
  • Watch out for text on images. Add a dark overlay or a solid background behind text placed on photos, because the contrast changes across the image.
  • Don’t rely on color alone. Links, errors and chart series should also be shown with underlines, icons or labels, for people who cannot tell certain colors apart.

For a deeper explanation, including the exact formula, read our color contrast and accessibility guide. To build accessible tints and shades of a brand color, try the color converter.