Color Contrast Checker

Color Contrast Checker

Check the WCAG contrast ratio between a text colour and a background colour, and see whether the pair passes AA and AAA for normal and large text.

Contrast ratio -

-

AA - Normal text (needs 4.5:1)-
AA - Large text (needs 3:1)-
AAA - Normal text (needs 7:1)-
AAA - Large text (needs 4.5:1)-

Large text means at least 24px, or at least 19px bold. Everything is calculated in your browser; no colour data is sent anywhere.

A heading in your colours

This paragraph is normal body text. If you can read it comfortably at a glance, your pair works for real content: articles, product descriptions, menus and forms.

This is small text: captions, footnotes and labels. Small text is the first thing a weak pair breaks.

Sample button

WCAG Contrast Ratios: Pass Levels, Examples and Fixes

A colour pair can look great in a palette and still be unreadable as text. Contrast is the measured brightness difference between text and its background, and the checker above turns it into one number - the contrast ratio - plus a clear pass or fail against WCAG, the accessibility standard designers and auditors work to. This guide explains what the numbers mean and how to fix a pair that fails.

How to check a colour pair

  1. Enter the text colour. Use the picker or type the HEX code of the colour your words will appear in.
  2. Enter the background colour. This is the colour behind the text: a page background, a button fill, a banner or a card.
  3. Read the ratio and the four badges. The ratio runs from 1:1 (identical colours) to 21:1 (black on white). The badges show AA and AAA results for normal and large text separately.
  4. Adjust one colour at a time. Darken the text or lighten the background in small steps and watch the preview until the pair passes AA. Swapping the two colours is worth one click - some pairs pass in one direction only.

Worked examples: real pairs, real ratios

TextBackgroundRatioAA normalAAA normal
#000000#FFFFFF21.00:1PassPass
#0A4450#FFFFFF10.74:1PassPass
#FFFFFF#0E5A687.83:1PassPass
#767676#FFFFFF4.54:1PassFail
#0D1F24#A9D94B10.26:1PassPass
#FFFFFF#A9D94B1.65:1FailFail
Worked examples calculated with the WCAG 2.1 relative-luminance formula - the same formula the checker above uses. Verdicts shown are for normal text; large text passes at lower ratios (see below). Note the last row: white on a bright lime is a popular brand combination that fails every level, while dark text on the same lime passes all of them.

What AA and AAA actually require

WCAG sets two conformance levels for text contrast. AA is the level most accessibility laws and professional standards require. AAA is the enhanced level, recommended where many readers have low vision.

  • Normal text: at least 4.5:1 for AA, and 7:1 for AAA.
  • Large text: at least 3:1 for AA, and 4.5:1 for AAA. Large means at least 24px, or at least 19px when bold.
  • Body copy is almost never large text. Paragraphs, captions, menu items and form labels are judged at the normal-text thresholds, which is why the checker reports the two sizes separately.

Contrast is a floor, not a finish line. Very thin fonts, tiny sizes and text over busy photos can defeat a passing ratio, so treat AA as the minimum to ship, not a guarantee.

How to fix a failing pair

  • Move one colour, not both. Keep the colour that carries your brand and adjust the other - darkening the text in small steps fixes most pairs.
  • Use a deeper shade of the same colour. A darker shade of your brand colour usually passes where the bright version fails, and still reads as the same brand.
  • Put text on a solid panel. Over a photo or gradient the ratio changes from word to word; a solid card behind the text gives you one honest number to check.
  • Check every state, not just the default. Hover states, visited links and buttons on different backgrounds are separate pairs, and each deserves its own check.

Frequently asked questions

What is a good contrast ratio for body text?
Aim for at least 4.5:1 - that is WCAG AA for normal text, the level most standards require. If many of your readers are older or have low vision, aim for the AAA level of 7:1 for your main content.
What counts as large text in WCAG?
Text of at least 24px, or at least 19px if it is bold. Headings usually qualify. Body text, captions, menus and labels almost never do, so they are checked against the stricter normal-text thresholds.
Why does white text on bright colours fail so often?
Because brightness, not hue, drives the ratio. White on the lime #A9D94B measures 1.65:1 - far below the 4.5:1 needed for body text - even though the pair looks vivid. The same lime with dark text measures 10.26:1 and passes AAA.
Does colour contrast affect SEO?
Not as a direct ranking formula. But unreadable text sends visitors away quickly, and readable, accessible pages are what search engines end up rewarding. Contrast is also part of accessibility compliance, which matters to many businesses regardless of search.
What is the difference between this checker and the Brand Color Tester?
The Brand Color Tester shows one colour on a realistic brand card so you can judge how it feels. This checker measures a specific text-and-background pair against the WCAG numbers. They work best together: choose the colour there, then prove it is readable here.

Build the palette, then prove every pair

A palette is a promise; contrast is the proof. When your main text-and-background pair passes AA, test your buttons, links and headings the same way - it takes seconds per pair. If you are still choosing the colours themselves, the Color Palette Generator and the Color Palette Design Generator build complete schemes, and every HEX code they give you can be pasted straight into the checker above.