Skip to content
AllInOneTools

Contrast checker

Check the WCAG contrast ratio of text and background colors and find the nearest color that passes AA or AAA.

Runs in your browser – your files are not uploaded

How to use Contrast checker

  1. 1

    Enter or pick the text (foreground) color and the background color.

  2. 2

    Read the contrast ratio and the pass/fail results for AA and AAA.

  3. 3

    If needed, choose a target level and apply the suggested nearest passing color.

About Contrast checker

Enter a text color and a background color to get the contrast ratio defined by the Web Content Accessibility Guidelines (WCAG 2.x). The checker shows at a glance whether the pair passes level AA or AAA for normal text, large text and user interface components such as icons, borders and form controls.

If a combination fails, the tool suggests the nearest passing color: it keeps hue and saturation and only changes lightness, so your brand color stays recognizable. You can adjust either the text or the background and apply the suggestion with one click. Ratios are never rounded up, so 4.49 : 1 is correctly reported as failing AA.

Frequently asked questions

What contrast ratio do I need?

WCAG 2.x level AA requires at least 4.5 : 1 for normal text and 3 : 1 for large text and for user interface components and graphics. Level AAA requires 7 : 1 for normal text and 4.5 : 1 for large text.

What counts as large text?

Text of at least 18 pt (24 CSS px) in regular weight, or at least 14 pt (about 18.7 CSS px) in bold.

Does the checker support transparent colors?

No – enter solid colors. For semi-transparent text, use the color it actually appears in on the background (for example from a color picker).

Is this the same as APCA or WCAG 3?

No. This tool uses the WCAG 2.x formula, which is what current accessibility laws and audits refer to. APCA, a candidate for future guidelines, uses a different calculation.