Color Contrast Checker (WCAG)

A contrast ratio of 4.5:1 or higher passes WCAG AA for normal text; 7:1 passes AAA. Black on white is 21.00:1, and gray #767676 on white is about 4.54:1 — just passing AA.

Check any two colors against the WCAG accessibility rules — AA and AAA, for normal and large text — and get a fix when they fail.

4.54:1

The quick brown fox jumps over the lazy dog.

Normal-size text in these colors. If this is hard to read, the ratio is probably below 4.5:1.

WCAG 2.1 rules: normal text needs 4.5:1 for AA and 7:1 for AAA. Large text (18pt+, or 14pt bold+) needs 3:1 for AA and 4.5:1 for AAA.

What the numbers mean

The contrast ratio measures how different two colors look: 1:1 means identical, 21:1 is black on white, the largest difference possible. The ratio comes from each color's relative luminance — how bright it looks to the human eye, with green counting most, red next, and blue least. A ratio of 4.5:1 is the line WCAG draws for normal text, because below it, people with low vision or color blindness start to struggle.

Two useful anchors: #000000 on #FFFFFF is 21.00:1 and #767676 on #FFFFFF is about 4.54:1 — the lightest gray that still passes AA as normal text on white. If your gray is lighter than #767676, darken it.

Frequently asked questions

What is a good contrast ratio?

For normal text, WCAG asks for at least 4.5:1 (level AA) and 7:1 for the stricter AAA level. For large text (18pt or larger, or 14pt bold and larger), AA asks for 3:1 and AAA asks for 4.5:1.

What is the contrast ratio of black on white?

Black text on a white background is 21.00:1 — the highest ratio possible, because black is the darkest color and white is the lightest.

What is the contrast ratio of #767676 on white?

Gray #767676 on white is about 4.54:1, which just passes WCAG AA for normal text. It is a useful anchor: any gray darker than #767676 passes AA on white, and any lighter gray fails.

How do I fix text that fails the contrast check?

Darken the text or lighten the background until the ratio reaches 4.5:1. Use the “Suggest a fix” button on this page — it finds the nearest shade that passes, so you keep the same color family.

Does contrast matter for icons and buttons too?

Yes. WCAG asks for at least 3:1 for user-interface parts like icons, borders, and focus outlines, so they stay visible to people with low vision.

Related tools

Color Picker · Color Blind Simulator · Pastel Colors · Palette Generator