Color Contrast Checker

Check if your text and background colors meet WCAG accessibility standards. Instant AA and AAA compliance results.

Large Text Sample (18pt / 14pt bold)

Normal text sample — the quick brown fox jumps over the lazy dog.

Contrast Ratio —
AA Normal Text —
AA Large Text —
AAA Normal Text —
AAA Large Text —

Try These Accessible Pairs

Click any pair to load it into the checker.

What is WCAG Contrast?

WCAG AA Standard

Requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). This is the minimum for most websites.

WCAG AAA Standard

Requires 7:1 for normal text and 4.5:1 for large text. AAA is the highest level and ensures readability for users with severe visual impairments.

Why It Matters

Poor contrast makes text hard to read for people with low vision or color blindness. Accessible contrast improves usability for everyone.

How It Works

Three steps to check any color combination for accessibility compliance.

1

Pick your colors

Enter a HEX code or use the color picker for both your text color and background color. You can also click any preset pair below the tool to load a combination instantly.

2

Read the contrast ratio

The tool calculates the WCAG contrast ratio in real time using the relative luminance formula. A ratio of 1:1 means identical colors; 21:1 is the maximum (black on white). The live preview shows exactly how your text will look.

3

Check AA and AAA compliance

Four badges tell you instantly whether your combination passes WCAG AA (4.5:1 normal, 3:1 large) and AAA (7:1 normal, 4.5:1 large). Use the Swap button to test the inverse combination without re-entering values.

Common Questions About Color Contrast

Answers to what accessibility-conscious designers search for most.

What contrast ratio do I need to pass WCAG AA?
At least 4.5:1 for normal-sized text and 3:1 for large text (18pt regular or 14pt bold). WCAG AA is the standard required by most accessibility laws including ADA and EN 301 549.
How is contrast ratio calculated?
The ratio is calculated using relative luminance: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 is the darker. Luminance is derived from linearized RGB values using the WCAG formula.
What is the difference between AA and AAA?
AA (4.5:1 normal, 3:1 large) is the legal minimum for most accessibility standards. AAA (7:1 normal, 4.5:1 large) is the enhanced level, recommended for body text and critical UI elements.
Does contrast ratio apply to icons and UI components?
Yes. WCAG 1.4.11 (Non-text Contrast) requires a 3:1 ratio for UI components like buttons, form inputs, and icons against their adjacent colors. This tool focuses on text contrast (WCAG 1.4.3 and 1.4.6).
What is considered large text for WCAG purposes?
Large text is defined as 18pt (24px) or larger for regular weight, or 14pt (approximately 18.67px) or larger for bold text. Headings typically qualify as large text; body copy typically does not.
Does color contrast affect SEO?
Not directly, but accessibility is a Google ranking signal through Core Web Vitals and overall page experience. Poor contrast increases bounce rates and reduces time-on-page, both of which indirectly affect rankings. Accessible sites also tend to rank better in voice search.
What is a good contrast ratio for body text?
For body text, aim for at least 4.5:1 (WCAG AA) and ideally 7:1 (WCAG AAA). Classic black (#000000) on white (#ffffff) gives a 21:1 ratio — the maximum possible. Dark navy on white, like #1a1a2e on #ffffff, gives around 17:1 and is a popular accessible choice.
How do I fix a failing contrast ratio?
Darken the text color or lighten the background (or both). Small adjustments in lightness (HSL) are the most efficient fix — reduce the L value of your text color or increase it for the background. Use the color picker in this tool to iterate until you pass.
Is contrast ratio the same as color contrast?
Yes — contrast ratio is the numerical measure of color contrast between two colors. It ranges from 1:1 (no contrast, same color) to 21:1 (maximum contrast, black vs white). WCAG uses this ratio to define minimum accessibility thresholds.
Which design tools have built-in contrast checkers?
Figma has a built-in contrast checker in its accessibility plugin ecosystem (e.g. A11y — Color Contrast Checker). Adobe XD, Sketch, and Framer also support contrast checking via plugins. This tool lets you check any HEX pair instantly without opening a design app.
Copied!