Contrast Checker

Embed this tool

Add the Contrast Checker to your own site, class page or blog: paste this code where it should appear. It runs in the visitor’s browser like this page does.

What Is a Color Contrast Checker?

A color contrast checker measures the contrast ratio between two colors to determine if text will be readable against its background. This is essential for meeting WCAG (Web Content Accessibility Guidelines) — the international standard for web accessibility. Poor contrast makes content unreadable for millions of users with low vision or color deficiencies.

This tool calculates the contrast ratio in real time, tells you whether your color combination passes WCAG AA and AAA standards for both normal and large text, and lets you fine-tune colors until they meet accessibility requirements.

WCAG Contrast Requirements

LevelNormal TextLarge Text
AA (minimum)4.5 : 13 : 1
AAA (enhanced)7 : 14.5 : 1

Tips for Accessible Color Choices

How to Use This Contrast Checker

  1. Enter your foreground color — Paste the hex code or pick the text color you're using.
  2. Enter your background color — Paste the hex code or pick the background color behind the text.
  3. Read the contrast ratio — The tool calculates the WCAG contrast ratio and shows whether your combination passes AA and AAA standards for both normal and large text.
  4. Adjust until you pass — If your colors fail, adjust the lightness of either color until the ratio meets your target level.

Worked example: what the fix suggestions actually change

When a pair misses the target you choose, the tool steps the text or background lightness in HSL, one point at a time, keeping hue and saturation, and offers the first colour that reaches it. On October 13, 2026 we ran the page's own functions in Chromium on five pairs, at the plain AA target (4.5:1) and at the new 4.6:1 "with margin" target.

Pair (exact ratio)Old displayDisplay nowSuggestion at 4.5:1At 4.6:1 (with margin)
#FF3366 on white (3.549)3.53.54darker text #EB003B → 4.56darker text #E60039 → 4.74
#777777 on white (4.478)4.5 (next to FAIL)4.47darker text #757575 → 4.60darker text #757575 → 4.60
white on #3B82F6 (3.678)3.73.67darker bg #1A6EF4 → 4.58darker bg #156BF4 → 4.72
#28C840 on white (2.228)2.22.22darker text #1B882B → 4.56; darker bg #424242 → 4.51darker text #1A842A → 4.79; darker bg #404040 → 4.65
Default #6B4EFF on #F5F0FF (4.518)4.54.51none (passes by 0.018)darker text #6647FF → 4.80; lighter bg #F8F5FF → 4.68

Related tools

Frequently Asked Questions

What is WCAG color contrast?
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and background colors. Level AA requires 4.5:1 for normal text and 3:1 for large text. Level AAA requires 7:1 for normal text and 4.5:1 for large text.
What is a good contrast ratio?
4.5:1 or higher meets WCAG AA for normal text. Large text needs 3:1: WCAG defines it as at least 18 point (about 24 px) or 14 point bold (about 18.66 px). 7:1 (4.5:1 for large text) meets AAA. Leave a little margin above the threshold, because WCAG does not round.
How is contrast ratio calculated?
Contrast ratio uses the relative luminance of two colors with the formula (L1 + 0.05) / (L2 + 0.05). The result ranges from 1:1 (no contrast) to 21:1 (maximum contrast, black on white).

📖 Learn More

Related Article Color Contrast & WCAG Accessibility Guide →
What is a good contrast ratio for text?+
WCAG 2.1 Level AA requires 4.5:1 for normal text and 3:1 for large text. Level AAA requires 7:1 for normal text and 4.5:1 for large text. For the best readability, aim for at least 7:1. Pure black on white is 21:1 — the maximum possible contrast.
What is the WCAG contrast standard?+
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and background colors. These standards ensure text is readable by people with low vision, color blindness, or those viewing screens in challenging lighting conditions. WCAG compliance is legally required in many jurisdictions.

📖 Learn More

Related Article How to Check Color Contrast for WCAG →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service