WCAG Color Contrast Checker
Check any text & background color pair against WCAG AA & AAA, preview it live, and get one-click fixes to pass. 100% in your browser.
Suggested fixes (adjusts the text color, keeps its hue)
Large heading text
Large body text sample (24px)
Normal paragraph text. The quick brown fox jumps over the lazy dog while testing readability at small sizes.
Sample buttonRecent pairs
How to Use the Color Contrast Checker
- Set your two colors. Choose a text (foreground) and a background color using the picker, hex field, RGB sliders, or the on-screen eyedropper.
- Read the contrast ratio. The big number is the WCAG contrast ratio, from 1:1 (identical) up to 21:1 (black on white).
- Check the pass/fail matrix. See AA and AAA results for normal text, large text and UI components at a glance.
- Fix failures instantly. If a level fails, click a suggested color to nudge the text lighter or darker until it passes — while keeping the same hue.
What Is Color Contrast & WCAG?
Color contrast is the difference in perceived brightness between text and its background. It is measured as a ratio from 1:1 (no difference) to 21:1 (pure black on pure white). The higher the ratio, the easier text is to read — especially for people with low vision or color blindness, and for everyone in bright sunlight or on cheap screens.
The Web Content Accessibility Guidelines (WCAG) set minimum contrast requirements. Level AA requires at least 4.5:1 for normal text and 3:1 for large text. Level AAA raises that to 7:1 and 4.5:1. User-interface components and meaningful graphics need at least 3:1. Large text means 24px or larger, or 18.66px or larger when bold.
This checker uses the official WCAG relative-luminance formula, so the numbers match what accessibility auditors and screen-reader testing tools report. It even composites a semi-transparent text color over the background for an accurate ratio. Everything runs locally — no colors are uploaded anywhere.
Common Use Cases
Why Choose This Contrast Checker
- Full WCAG matrixAA & AAA for normal text, large text and UI components.
- One-click fixesSuggested passing shades that keep your original hue.
- Live previewSee real heading, body and button text in your colors.
- Alpha awareCorrectly composites transparent text over the background.
- Eyedropper & slidersPick any on-screen pixel or fine-tune each RGB channel.
- Private & freeRuns entirely in your browser with shareable links and history.
