WCAG Contrast Checker

Check text and background colors against WCAG AA and AAA.

Your input

Contrast ratio 4.54:1 Passes AA
AA, normal text (4.5:1)
✓ Pass
AA, large text (3:1)
✓ Pass
AAA, normal text (7:1)
✗ Fail
AAA, large text (4.5:1)
✓ Pass
UI components and graphics (3:1)
✓ Pass
Aa SampleThe quick brown fox jumps over the lazy dog
  • Large text means 24 px or bigger, or 18.66 px or bigger in bold. Ratios are shown truncated, never rounded up, so a 4.499 can never look like a pass.

What is color contrast?

Contrast is how different the lightness of text is from its background. Low contrast text is hard to read, especially for people with weak vision, on a dim screen or in bright sunlight. The WCAG accessibility guidelines turn this into a number called the contrast ratio, from 1:1 (no difference) to 21:1 (black on white).

Level AA needs at least 4.5:1 for normal text and 3:1 for large text and interface parts such as icons and input borders. Level AAA needs 7:1 for normal text and 4.5:1 for large text. This tool measures your pair, shows each pass or fail and, if the pair fails AA, suggests the nearest text color that passes.

How to use the WCAG Contrast Checker

  1. Enter the text color and the background color.
  2. Read the ratio and the pass or fail rows.
  3. If it fails AA, look at the suggested replacement color.
  4. Use the Swap option to test the reverse pairing.

Real situations

When people use the WCAG Contrast Checker

  • 1

    Check a brand palette for accessibility

    Test text colors on your brand backgrounds before they go into a design system.

  • 2

    Fix a gray that looks too faint

    Find out whether light gray text passes, and get a nearby darker color that does.

  • 3

    Review a design before launch

    Confirm buttons, links and form borders meet the 3:1 or 4.5:1 rules.

  • 4

    Back up an accessibility report

    Give a specific ratio and the rule it fails when you raise an issue.

FAQ

WCAG Contrast Checker: questions answered

What contrast ratio do I need?

WCAG AA needs 4.5:1 for normal text and 3:1 for large text and UI parts. AAA needs 7:1 for normal text and 4.5:1 for large text. The default pair #767676 on white scores 4.54:1, which passes AA.

What counts as large text?

Text 24 px or bigger, or 18.66 px or bigger when bold. Smaller text counts as normal and needs the higher ratio.

Why does #777777 on white fail?

Its ratio is 4.47:1, just under 4.5:1. The tool shows ratios cut down, never rounded up, so a 4.499 can never appear to pass. #767676 is the lightest gray on white that passes AA for normal text.

How is the ratio calculated?

Each color is converted to a relative luminance, then the ratio is (lighter + 0.05) divided by (darker + 0.05). Black on white gives 21:1. White on #3498db gives 3.15:1, so it passes only for large text and UI.

Can I check colors with transparency?

No. The result depends on what is behind a transparent color, so the tool asks for solid colors. Work out the final color on its background and test that.

Does passing mean the text is accessible?

Passing contrast is one requirement of many. Font size, spacing, color used alone to carry meaning and other factors also matter. Treat the ratio as a minimum, not a guarantee.

Is this WCAG Contrast Checker free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way