Color Contrast Checker

—

Normal text — AA (4.5:1)—
Normal text — AAA (7:1)—
Large text — AA (3:1)—
Large text — AAA (4.5:1)—
UI components / graphics — AA (3:1)—

Normal text looks like this.

Large text looks like this.

Check whether two colors pass WCAG contrast rules, using the official relative-luminance formula — the same math WebAIM and browser accessibility tools use. See pass or fail for normal text (AA 4.5:1, AAA 7:1), large text, and UI components, with a live preview. If your colors fail, the tool suggests a text color that passes. Free, instant, and everything runs in your browser.

Frequently asked questions

What is a good contrast ratio?

4.5:1 or higher passes WCAG AA for normal text — that is the level most websites and the ADA aim for. 7:1 passes AAA, the strictest level. Large text (18pt or 14pt bold and up) only needs 3:1 for AA.

Why does my brand color fail on white?

Many brand colors are too light for body text. Light teal, yellow and pale blue often score under 3:1 on white. They can still work for large headings, icons or backgrounds — but body text needs a darker shade.

What does “suggest a passing color” do?

It darkens or lightens your text color step by step, keeping the same hue, until the pair reaches 4.5:1 (AA for normal text). You get a color that is as close as possible to your original while still passing.

Is contrast a legal requirement?

In the US, the ADA is increasingly read as requiring accessible websites, and the EU Accessibility Act applies to many digital services. WCAG AA is the standard courts and regulators usually point to — but this tool is a checker, not legal advice.