·5 min read·Blog

How to Check Color Contrast for Accessibility (WCAG AA and AAA Guide)

Poor color contrast is the most common accessibility failure found in web audits. Here's what the WCAG ratios actually mean, what passes and fails, and how to check any color combination free.

Check any color pair instantly

Use the free color contrast checker — enter any foreground and background color in hex format and get the contrast ratio plus AA and AAA pass/fail results. No account required.

Why contrast matters

Approximately 300 million people worldwide have color vision deficiency. Many more have low vision, read in bright sunlight, or use displays with poor calibration. Text that looks fine to a designer with a high-quality monitor can be completely unreadable to a significant portion of the actual audience.

Beyond accessibility, contrast affects all users: outdoor reading, aging eyes, and fatigue all reduce effective contrast sensitivity. Good contrast makes content easier to read for everyone.

What the WCAG contrast ratio means

The contrast ratio compares the relative luminance (brightness) of two colors on a scale from 1:1 (identical colors, no contrast) to 21:1 (black text on white background, maximum contrast).

WCAG 2.1 defines two conformance levels:

LevelNormal textLarge textUI components
AA (minimum)4.5:1 ratio3:1 ratio3:1 ratio
AAA (enhanced)7:1 ratio4.5:1 ratioN/A

Large text is defined as 18pt (24px) normal weight or 14pt (18.67px) bold. Text at larger sizes is easier to read with lower contrast, hence the relaxed requirement.

UI components includes button borders, input focus indicators, icon outlines, and other graphical elements that convey meaning (but not decorative elements).

Common color combinations and their ratios

Text / BackgroundRatioAA textAAA text
Black on white (#000 / #fff)21:1PassPass
Navy on white (#003366 / #fff)11.8:1PassPass
Gray on white (#767676 / #fff)4.54:1PassFail
Light gray on white (#aaa / #fff)2.32:1FailFail
White on blue (#fff / #0066cc)5.1:1PassFail
Yellow on white (#ffff00 / #fff)1.07:1FailFail

The most common failure: light gray placeholder text, footer text, or captions on white backgrounds. Many designers use #999 or #aaa for secondary text — these fail AA for normal text sizes.

How to fix failing contrast

When a color pair fails, you have three options:

  1. Darken the foreground color: for light text on white, moving from #aaa to #767676 is the minimum for AA compliance. Verify with the checker as you adjust.
  2. Lighten the background: if the background is dark, lightening it increases contrast with dark text.
  3. Increase text size: large text (18px+ or 14px+ bold) has relaxed contrast requirements — 3:1 for AA instead of 4.5:1.

The gray minimum for body text

The minimum gray value for body text on a white background to pass WCAG AA is approximately #767676 (ratio: 4.54:1). Anything lighter than this fails.

For primary content, aim for #595959 or darker for comfortable reading at normal sizes. Reserve the minimum-passing gray for secondary content like captions.

WCAG 3.0 and APCA

The upcoming WCAG 3.0 uses a different contrast algorithm called APCA (Advanced Perceptual Contrast Algorithm) that is more perceptually accurate — especially for dark mode and colored backgrounds. WCAG 3.0 is not yet the adopted standard, but APCA is worth evaluating for new design systems.

Summary

  • Normal text needs 4.5:1 contrast for AA, 7:1 for AAA
  • Large text (18px+ or bold 14px+) needs 3:1 for AA
  • The minimum gray for body text on white: #767676
  • Yellow on white is essentially invisible — never use it for text
  • Check any color pair with the free contrast checker

Browse by category

Not sure which tool you need? Start with a category.

Everything you can do — for free

No software to buy. No account to create. Just open a tool and get it done.

Work with images

Compress photos before sending them by email, resize pictures for social media, remove backgrounds, or pick the perfect color for a design project — all without installing any app.

Edit and format text

Count words and characters in an essay, compare two documents side by side, convert text to different formats, or generate placeholder text for a presentation.

Stay safe online

Create a strong unique password in one click, check how secure a password is, encode or decode data, and generate secure tokens — your data never leaves your device.

Calculate anything

BMI, loan repayments, unit conversions, date differences, and dozens of other everyday calculations — no spreadsheet or formula knowledge required.

The Free AI Tools is a free collection of 221+ online tools that work directly in your web browser — no download, no installation, no account required. Whether you need to compress an image for email, count words in an essay, generate a strong password, create a QR code for your business, or format JSON for development — you will find a simple, free tool here.

Every tool is privacy-first: your files, text, and data never leave your device. Tools cover image editing, text processing, developer utilities, security & encoding, SEO & web, design & CSS, and more.

☕ Support Us