1. Free tools
  2. Color Contrast Checker

FREE ACCESSIBILITY TOOL

Color contrast checker

Test any text and background color against the WCAG AA and AAA contrast ratios. See a live preview, the exact ratio, and a one-click fix to the nearest passing color. Nothing is uploaded.

  • WCAG 2.2 AA and AAA
  • Live preview
  • Nearest passing color

Colors

Runs entirely in your browser. Nothing is uploaded.

Result

21.00CONTRAST RATIO

Large heading sample

This is body text at a normal size. Good contrast keeps it readable for everyone, including people with low vision.

Normal text

AA PASS
AAA PASS

Large text

AA PASS
AAA PASS

UI components & graphics (3:1)

Non-text contrast PASS

Nearest passing color (AA normal text)

HOW IT WORKS

Check contrast in three steps

The checker uses the official WCAG luminance formula, so the ratio it shows matches what auditors, screen reader vendors and legal accessibility reviews use.

  1. Enter two colors

    Type a hex value, use the color pickers or paste an rgb() or named color for the text and its background.

  2. Read the ratio and passes

    See the exact contrast ratio and whether it meets AA and AAA for normal and large text, plus the 3:1 bar for UI and graphics.

  3. Apply the nearest fix

    If a pair fails, click a suggestion to shift the lightness of your text or background until it passes AA, keeping your hue.

WCAG THRESHOLDS

What contrast ratio you need, and why

Contrast is the difference in luminance between text and its background. WCAG sets minimums so text stays legible for people with low vision, color vision deficiency, or anyone reading on a glary screen.

ContentAA minimumAAA minimum
Normal text (under 24px)4.5 : 17 : 1
Large text (24px, or 18.66px bold)3 : 14.5 : 1
UI components and graphics3 : 13 : 1
Disabled controls and logosExemptExempt

WHAT YOU GET

Built for real design work

EXACT

WCAG formula

Relative luminance and the (L1 + 0.05) / (L2 + 0.05) ratio, matching audit tools to two decimal places.

LIVE

Instant preview

See your heading and body text on the real background as you type, so you judge legibility, not just the number.

FIX

Nearest passing color

Keep your hue and nudge the lightness to the closest value that passes AA, instead of falling back to black or white.

FLEXIBLE

Any color format

Hex, shorthand hex, rgb() and named CSS colors all work, with color pickers for fast trial and error.

COMPLETE

Every level

AA and AAA for normal and large text, plus the 3:1 threshold for buttons, icons, inputs and charts.

PRIVATE

Nothing uploaded

Everything runs in your browser. No account, no tracking of your colors, no server round trip.

ONE PAIR VS A WHOLE SITE

This tool checks a color pair. SiteAuditLint checks every page.

Use this checker while you design. When you need to find low-contrast text that already shipped, the desktop app crawls your pages and flags it in context.

TaskThis free toolSiteAuditLint app
Check one text and background pairYesYes
Live preview and nearest passing colorYesNot needed
Find low-contrast text across a siteNoYes
Report issues per page with element contextNoYes
Re-check after a fix across all pagesNoYes

The checker here is perfect for design decisions. Site-wide auditing lives in the free desktop app.

FAQ

Color contrast questions

What is a good color contrast ratio?

WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text (18.66px bold or 24px and up). AAA raises that to 7:1 for normal text and 4.5:1 for large text. User interface components and graphics need at least 3:1.

Is this color contrast checker free?

Yes. It is free with no signup, and it runs entirely in your browser, so nothing you type is uploaded. To find low-contrast text across a whole site, download the free SiteAuditLint desktop app.

How is the contrast ratio calculated?

The ratio uses the WCAG formula (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminance of the lighter and darker colors. Luminance comes from the sRGB values, so the number matches what screen readers and audit tools report.

What counts as large text for WCAG?

Large text is at least 24px, or 18.66px (14pt) when bold. Large text passes AA at 3:1 and AAA at 4.5:1, so a color pair that fails for body copy can still pass for headings.

What colors can I paste in?

Hex (#1a2b3c or #abc), rgb() and named CSS colors all work. Use the color pickers or type a value, and the checker normalizes it and shows the ratio instantly.

How do I fix a failing color?

Use the nearest passing color button. It keeps your hue and adjusts the lightness until the pair meets AA, so you get an on-brand color that passes rather than defaulting to pure black or white.

Does contrast affect SEO?

Not directly, but poor contrast hurts readability and accessibility, which affects engagement and can trigger accessibility complaints. Legible text is also part of Google page experience.

Check one pair here. Find every low-contrast element with SiteAuditLint.

Contrast problems hide in templates, hover states and overlays. The free desktop crawler flags low-contrast text across all your pages, so you fix the source once.

Download SiteAuditLint