Free Online Color Contrast Checker
A WCAG contrast checker computes the relative-luminance ratio between two colors and reports pass/fail against AA and AAA at both normal and large text sizes.
Your data is processed entirely in your browser and never sent to any server.
The quick brown fox jumps over the lazy dog. (Normal text — 14px)
The quick brown fox jumps over the lazy dog. (Large text — 18px)
Large bold heading
How to Use This Tool
- Enter or pick the Foreground (text) hex color.
- Enter or pick the Background hex color.
- Read the live contrast ratio (for example 4.71:1) in the result panel.
- Scan the four badges — AA Normal, AA Large, AAA Normal, AAA Large — for Pass or Fail.
- Tweak either color until you hit the level your design needs.
What Is a Color Contrast Checker?
WCAG 2.1 Success Criterion 1.4.3 requires a contrast ratio of at least 4.5:1 between text and background for AA compliance and 7:1 for AAA. Large text — 18pt or 14pt bold and above — gets the looser thresholds of 3:1 (AA) and 4.5:1 (AAA). The ratio is `(L1 + 0.05) / (L2 + 0.05)` where L is relative luminance, a gamma-decoded weighted sum of the sRGB channels per the WCAG formula.
Front-end engineers run a contrast check before committing CSS tokens; accessibility specialists audit shipped pages against AA at a minimum; brand designers verify that the corporate accent passes against the dominant background. Failing contrast is the single most common accessibility bug across the web.
The checker computes the ratio live as you change either color and renders a preview block in the actual pair, so you can verify the eye-level result matches the math.
Frequently Asked Questions
What contrast ratio is required by WCAG?
How is contrast ratio calculated?
What counts as large text?
Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.
Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.
Related Color & Design
Simulate protanopia, deuteranopia, tritanopia and achromatopsia. See how your color choices appear to colorblind users.
Pick any color with an interactive picker. See hex, RGB and HSL values update live, then copy in one click.
Generate complementary, analogous, triadic, tetradic and monochromatic color schemes from any seed color.
Generate 10 shades, 10 tints and 10 tones of any color. Build a Tailwind-style 50–950 scale from a single seed.
Browse the full Tailwind CSS v4 color palette — 22 hues × 11 shades. Click any swatch to copy the hex code.