Home / Free tools / Images / Color Contrast Checker

Color Contrast Checker

Test two colours against WCAG AA and AAA, see the nearest colours that pass, build accessible shades from one colour and check a whole palette.

Large sample text

Normal sample text: the quick brown fox jumps over the lazy dog.

Type HEX, rgb(), hsl() or a colour name. Colours are checked in your browser and are not uploaded.

Accessible shades of one colour

Check a whole palette

Runs in your browser. Nothing you paste or choose is uploaded or stored.

What this color contrast checker does

Low-contrast text is one of the most common accessibility failures on the web. This checker compares a text colour with a background colour, shows the WCAG contrast ratio and tells you whether the pair passes the AA and AAA levels for normal text, large text and user-interface parts such as icons and input borders. When a pair fails, it offers the nearest colours that pass, so you keep the look and fix the problem.

Two extra tools sit below the checker. The shades table builds a scale from one base colour and shows which shades take white text and which take black. The palette check tests every colour in a palette against every other, so you can see which pairs are safe for text before you build a design around them.

The WCAG contrast rules

Worked example

Grey #767676 on white measures 4.54:1, so it just passes AA for normal text and fails AAA, which needs 7:1. The slightly lighter grey #777777 measures 4.48:1 and fails AA for body text, although it passes for large text. The checker shows both results, and for a failing pair it lists the nearest same-hue colours that reach 3:1, 4.5:1 and 7:1, for text or for the background.

How to use the results

Limits

Contrast is one of many accessibility requirements, and a passing ratio does not make a page accessible or compliant. Text over images and gradients needs checking at its worst point. This tool uses the WCAG 2.2 contrast ratio and does not use APCA or the proposed WCAG 3 method. Tools differ slightly if they round or use the older 0.03928 threshold; this one follows the WCAG 2.2 text. Suggested colours are a starting point; check them in context. Checked against W3C documents on December 4, 2026. See also the colour converter for HEX, RGB, HSL and CMYK values.

Sources and date checked

Checked on December 4, 2026. Rules and rates change, so open the source before you rely on a figure for a filing, a contract or a roadside check.

Questions

What is a good colour contrast ratio?

For normal text, WCAG AA needs at least 4.5:1 and AAA needs 7:1. Large text needs 3:1 for AA and 4.5:1 for AAA. User-interface parts need 3:1.

What counts as large text in WCAG?

Text at least 18 point (24 px), or at least 14 point (about 18.7 px) in bold.

Why does 4.49:1 fail when the minimum is 4.5:1?

WCAG says the ratio must not be rounded. This checker truncates the displayed ratio so a failing pair never looks like a pass.

Does a passing contrast ratio make my site WCAG compliant?

No. Contrast is one requirement among many, including keyboard access, text alternatives and structure. A pass here only covers the colour pair you tested.

How do you handle transparent colours?

A transparent text colour is blended with the background. A transparent background is placed on white, so check it against the real colour behind it.

Does the checker use APCA?

No. It uses the WCAG 2.2 contrast ratio, which is what AA and AAA conformance is measured against today.

Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.