All tools Contrast Checker (WCAG) ● Live Developer Tools

How Contrast Checker (WCAG) works

  1. Enter or pick a foreground (text) color.
  2. Enter or pick a background color.
  3. View the computed contrast ratio and pass/fail badges for AA Normal, AA Large, AAA Normal, and AAA Large.
  4. Check the live text preview to see how the combination looks in practice.
  • Verify your website's text and background colors meet WCAG AA accessibility requirements.
  • Check if a brand color combination is accessible enough for body text.
  • Test multiple color pairs while designing a UI color palette.
  • Audit existing pages for accessibility compliance during a review.
  • Find the minimum contrast adjustment needed to pass a threshold.

All calculations happen locally in your browser. Colors are never sent to a server.

  • Checks luminance-based text contrast only — not color-blindness-specific simulations.
  • Doesn't account for font rendering differences across browsers/devices.
  • Non-text element contrast (WCAG 1.4.11) uses a different threshold not directly badged here.

Contrast Checker (WCAG)

Contrast Checker computes the relative luminance contrast ratio between any two colors and tests it against all four WCAG 2.1 thresholds: AA Normal (4.5:1), AA Large (3:1), AAA Normal (7:1), and AAA Large (4.5:1). A live text preview shows how the combination looks in practice.

Contrast Checker (WCAG) Runs locally

Aa

The quick brown fox jumps over the lazy dog.

Small text sample at 14px.

13.98:1
Contrast ratio
WCAG AA — Normal text (≥4.5:1)Pass
WCAG AA — Large text (≥3:1)Pass
WCAG AAA — Normal text (≥7:1)Pass
WCAG AAA — Large text (≥4.5:1)Pass
Guide

How to use

  1. Enter or pick a foreground (text) color.

  2. Enter or pick a background color.

  3. View the computed contrast ratio and pass/fail badges for AA Normal, AA Large, AAA Normal, and AAA Large.

  4. Check the live text preview to see how the combination looks in practice.

Scenarios

Use cases

  • Verify your website's text and background colors meet WCAG AA accessibility requirements.

  • Check if a brand color combination is accessible enough for body text.

  • Test multiple color pairs while designing a UI color palette.

  • Audit existing pages for accessibility compliance during a review.

  • Find the minimum contrast adjustment needed to pass a threshold.

Good to know

Limitations & Privacy

Private by design

All calculations happen locally in your browser. Colors are never sent to a server.

  • Checks luminance-based text contrast only — not color-blindness-specific simulations.

  • Doesn't account for font rendering differences across browsers/devices.

  • Non-text element contrast (WCAG 1.4.11) uses a different threshold not directly badged here.

FAQ

Frequently asked questions

What is WCAG?

WCAG (Web Content Accessibility Guidelines) is an international standard for web accessibility. Contrast requirements ensure text is readable for users with low vision or color blindness.

What counts as 'large text'?

WCAG defines large text as 18pt (24px) or larger for regular weight, or 14pt (18.67px) or larger for bold text. Large text has a lower contrast requirement than normal text.

What's the difference between AA and AAA?

AA is the standard compliance level required by most accessibility laws and guidelines (4.5:1 for normal text, 3:1 for large text). AAA is a stricter, enhanced level (7:1 for normal text, 4.5:1 for large text) recommended for content where readability is critical.

How is the contrast ratio calculated?

It's based on the relative luminance of both colors, following the WCAG 2.1 formula. The ratio ranges from 1:1 (no contrast, identical colors) to 21:1 (maximum contrast, black on white).

Does this check color blindness compatibility?

This tool checks luminance contrast ratio, which benefits low-vision users broadly. It doesn't simulate specific color blindness types (e.g. deuteranopia), which depend on hue differences rather than just luminance.

What ratio should I aim for on body text?

Aim for at least 4.5:1 (WCAG AA) for normal-sized body text. For a more accessible experience, 7:1 (AAA) is recommended where practical.

Can I use this for non-text elements like icons or borders?

This tool focuses on text contrast per WCAG 1.4.3/1.4.6. WCAG 1.4.11 covers non-text contrast (UI components, graphics) with a lower 3:1 threshold, which this tool's text-focused ratios can still inform.