Two colors can sit beautifully next to each other in a palette and still fail the people who have to read them. Light gray text on a white page is the famous case, but the subtler one is the brand color that looks strong on a designer's calibrated monitor and washes out for everyone else. Taste cannot settle this. A measurement can.

Contrast checking is one of the few parts of accessibility that reduces to arithmetic: a text color, a background color, one ratio, and published thresholds to judge it against. This guide shows how to run that check with the free Color Contrast Checker on Ovatly, in the order the tool presents it, and how to make the decision the result asks for.

Contents

  • Quick answer
  • What the ratio actually measures
  • The four thresholds, and which text size you have
  • How to check contrast, step by step
  • Worked example: a brand blue on white
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

To check color contrast for accessibility: enter your text color and background color in the Color Contrast Checker, read the ratio and the preview, and compare the ratio with the WCAG rows for your text size. Normal text needs 4.5:1 for AA and 7:1 for AAA; large text (at least 18pt, or 14pt bold) needs 3:1 for AA and 4.5:1 for AAA. Then use Swap colors to test the inverse pairing before you decide. For example, #2563EB on white measures 5.17:1, which passes AA for normal text and fails AAA.

What the ratio actually measures

The checker measures your text color against your background color using the WCAG 2.1 relative luminance formula, the same calculation accessibility checkers use. The output is a single ratio: 5.17:1 means the lighter of the two colors is a little over five times as luminous as the darker one, by that formula.

One property of the ratio is worth knowing before you start: it is symmetric. The order of the two colors does not change the score, so blue text on white and white text on blue return the same number. What changes between those two designs is not the ratio but which thresholds your text has to meet, because the text in each case may be a different size. The checker's Swap colors button exists so you can test the inverse pairing as it will actually appear, rather than assuming it behaves the same way.

The four thresholds, and which text size you have

WCAG sets two conformance levels, AA and AAA, and two text sizes, which gives four numbers to hold in your head:

  • AA, normal text: 4.5:1
  • AA, large text: 3:1
  • AAA, normal text: 7:1
  • AAA, large text: 4.5:1

AA is the level most laws and procurement rules reference, so it is the working target for most projects. AAA is stricter, and worth choosing for body text when the design allows it.

The size split is where checks go wrong. Large text means at least 18pt, or 14pt bold. Everything smaller counts as normal text, including most body copy, captions, footnotes and interface labels. A headline can legitimately be judged against 3:1 at AA; the paragraph beneath it must reach 4.5:1. Decide which row each piece of text belongs to before you run the check, not after you see the result.

How to check contrast, step by step

  1. Open the Color Contrast Checker and enter the text color and the background color.
  2. Read the ratio and the preview at the top of the results. The preview shows the pairing as text, which is a useful sanity check on the numbers.
  3. Check the AA and AAA rows for your text size: normal or large, as defined above.
  4. Use Swap colors to test the inverse pairing, and judge that result against the size of the text in the swapped design.
  5. If a pairing fails, adjust the color one step at a time and re-check, rather than jumping to a much darker or lighter version in one move.

Worked example: a brand blue on white

Take the blue #2563EB as text on a white background, #FFFFFF. The checker measures the pair at 5.17:1.

Now judge it row by row. For normal text, 5.17:1 passes AA, which needs 4.5:1, and fails AAA, which needs 7:1. For large text, it passes AA easily against 3:1, and also passes AAA, which needs 4.5:1.

The decision that follows is precise, and it is the real output of the check. This blue is fine for normal text at AA, and fine for headlines even at AAA. What you may not do is claim AAA for body text set in it. If a project genuinely requires AAA body text, the fix is to darken the blue one step at a time, re-checking after each step, until the ratio reaches 7:1, and to keep the original bright version for large headings, borders and graphics, which have lower thresholds or none.

Limitations and honest tradeoffs

The ratios follow WCAG 2.1 exactly. WCAG 3 drafts use a different model, called APCA, and can judge the same pair differently. If a client or a standard names a version, check against that version; a pass here is a WCAG 2.1 pass, not a universal one.

A passing ratio also does not guarantee readable text. Contrast is only one part of readability: thin font weights and small sizes can still be hard to read at a ratio that passes. The checker measures the two colors you give it, so it says nothing about the weight, size or spacing of the actual type. Treat a pass as permission to use the pairing, not as proof that the finished page is easy to read.

And the checker judges one pair at a time. A page with body text, links, buttons and headings in different colors needs each pairing checked separately, in the direction and size it will actually appear.

Common mistakes

  • Judging by eye instead of measuring. A pair that looks crisp on your screen can still fall under 4.5:1. The formula, not the impression, is the standard.
  • Reading the wrong row. Checking a pair against the large-text threshold when the text is body copy is the most common way a failing pair gets signed off.
  • Claiming the level you wanted, not the one you reached. Passing AA and writing AAA in the project notes is a small falsehood that tends to surface in audits.
  • Testing only one direction. Menus, buttons and hover states invert pairings. Swap the colors and check the inverse before shipping.
  • Fixing a failure in one big jump. Overshooting to near-black destroys the brand color. Darken one step at a time and stop at the first version that passes.

FAQs

What ratio should I aim for? AA is the level most laws and procurement rules reference: 4.5:1 for normal text and 3:1 for large text. AAA (7:1 for normal text and 4.5:1 for large text) is stricter and worth choosing for body text when the design allows it.

What counts as large text? Large text means at least 18pt, or 14pt bold. Everything smaller counts as normal text and must meet the higher ratio for its level.

Does the order of the two colors matter? No. The ratio is symmetric, so white text on blue scores exactly the same as blue text on white. What changes is which size thresholds your text must meet, and the checker's Swap colors button lets you test the inverse pairing.

My brand color fails on white. What now? Darken it one step at a time until it passes, and reserve the original bright version for large headings, borders and graphics, which have lower thresholds or none.

Does a passing ratio guarantee readable text? No. Contrast is only one part of readability: thin font weights and small sizes can still be hard to read at a passing ratio, and WCAG 3 drafts use a different model (APCA) that can judge the same pair differently.

Conclusion

Contrast checking is a small discipline with a clear payoff: enter both colors in the Color Contrast Checker, read the ratio, judge it against the right row for your text size, and swap the pairing before you commit. A checked palette is only useful if it survives into the next project, though, which is why our guide to saving and reusing a palette across projects covers keeping the exact values as text. For more guides in this series, see our Color and Design Tools guides.