Color Contrast Checker

Check whether text and background colors meet WCAG AA and AAA contrast, and get passing alternatives.

4.83:1Good - passes AA for all text sizes

Large text: the quick brown fox

Normal text at 16px - the size most body copy uses. Can you read this comfortably?

Small print at 13px, like captions and footnotes.

Outline buttonA text link
✓ PassNormal text AAneeds 4.5:1
✗ FailNormal text AAAneeds 7:1
✓ PassLarge text AAneeds 3:1
✓ PassLarge text AAAneeds 4.5:1
✓ PassUI components & icons AAneeds 3:1

Closest colors that pass

Same hue, with the lightness changed as little as possible. Pick one to apply it.

  • AaAAA - text #545965 (7.01:1)
color: #6b7280;
background-color: #ffffff;

rgb(107, 114, 128) on rgb(255, 255, 255)

This contrast checker tells you whether text is easy enough to read against its background, using the Web Content Accessibility Guidelines (WCAG) that accessibility laws and audits refer to. Pick two colors to see the contrast ratio, a pass or fail for each WCAG level, a live preview, and the closest colors that would pass. It runs in your browser.

What the contrast ratio means

The ratio compares how bright the two colors are, from 1:1 (identical) to 21:1 (black on white). It is calculated from each color's relative luminance - how bright it looks to the human eye, which is far more sensitive to green than to blue. That is why yellow text on white is hard to read even though the colors look very different.

WCAG requirements

  • AA, normal text: 4.5:1 - the level most laws and company policies require.
  • AA, large text: 3:1 - large means at least 24px, or 18.66px (14pt) when bold.
  • AA, user interface components: 3:1 - icons, input borders, focus outlines and chart lines (WCAG 1.4.11).
  • AAA: 7:1 for normal text, 4.5:1 for large text - the enhanced level, recommended for long reading and older readers.

There is no rounding in WCAG: 4.49:1 fails AA. This checker rounds down when it shows the ratio, so a value displayed as passing really does pass.

Fixing a color that fails

When a pair fails, the tool searches for the nearest color that passes - keeping the same hue and saturation and only making it lighter or darker - for both the text and the background. This keeps your brand color recognisable while fixing the problem, instead of falling back to plain black or gray.

Frequently asked questions

Which color formats can I enter?

HEX (with or without the #), RGB, RGBA, HSL, HSLA and CSS color names such as navy or rebeccapurple. Transparent colors are measured as they would appear on screen.

Does passing WCAG guarantee readable text?

It is a strong baseline, not a guarantee. Very thin fonts, small sizes and text over images can still be hard to read at a passing ratio, so check the preview too.

What about APCA and WCAG 3?

APCA is a newer contrast method proposed for the future WCAG 3. It is still a draft, so WCAG 2.2's ratio - used here - remains the standard that audits and laws such as the ADA and the European Accessibility Act refer to.

Related tools

Convert colors between formats with the Color Converter, pull a color scheme out of a photo with the Color Palette Extractor, or browse all Graphics & Media tools.

Runs entirely in your browser - nothing you enter or upload is sent to a server.