WCAG contrast ratio of two colors with pass/fail.
The Contrast Checker is a free online tool that calculates the WCAG contrast ratio between two colors and tells you plainly whether the combination passes or fails accessibility standards. Text that is too close in luminance to its background excludes millions of readers — the elderly, the visually impaired, anyone on a sunlit phone screen — and most designers cannot judge contrast reliably by eye. This checker applies the official WCAG luminance formula and reports the ratio alongside AA and AAA verdicts for normal and large text. It is the accessibility cornerstone of our color tools collection.
The WCAG standard defines precise thresholds: 4.5:1 for normal text at AA level, 3:1 for large text, with stricter 7:1 and 4.5:1 targets at AAA. The checker computes relative luminance for each color using the specified gamma-corrected formula, derives the ratio and maps it to pass/fail for each level — no ambiguity, no eyeballing. Enter foreground and background as hex, RGB or via the pickers, and the verdict appears instantly with the exact ratio for your records. For the broader accessibility context, Wikipedia’s web accessibility article explains why these standards exist.
Checking runs entirely in your browser with no signup: pick two colors, read the verdict, fix failures. It belongs in every design review alongside our Color Converter for format translation, the Gradient Generator for backgrounds and the Brand Color Finder for famous hex codes — or browse all free online tools.
How to Use the Contrast Checker
- Open the Contrast Checker: Load the tool page on InstantAccessTools. Two color inputs and the results panel appear immediately.
- Enter the text color: Type the hex code or pick the foreground color — the color your text, icons or UI elements wear.
- Enter the background color: Provide the background hex or pick it visually. Gradients and images need checking against their dominant tone.
- Read the contrast ratio: The exact ratio (like 7.2:1) displays instantly, computed with the official WCAG relative-luminance formula.
- Check the AA verdict: See pass/fail for WCAG AA: 4.5:1 for normal text, 3:1 for large text. AA is the legal and practical baseline most projects target.
- Check the AAA verdict: Review the stricter AAA results: 7:1 normal, 4.5:1 large. AAA is aspirational for body text and expected in some regulated contexts.
- Note large-text differences: Large text (roughly 18pt+ or 14pt bold+) enjoys lower thresholds. The checker reports both so headings and body copy are judged correctly.
- Adjust failing combinations: Nudge the foreground darker or the background lighter until the ratio crosses the threshold — small lightness moves fix most failures.
- Re-check after adjustments: Every tweak recalculates live. Iterate until the verdict flips to pass at your target level.
- Document the passing pair: Record the ratio alongside the hex codes in your design system. Documented contrast is defensible contrast.
- Audit the full palette: Systematically check every text-background pairing your palette allows, not just the obvious ones — edge combinations fail silently.
- Test interactive states: Hover, focus and active states change colors; verify contrast holds through every state transition.
- Check dark mode too: Dark themes invert the contrast challenge — re-run every pairing against dark surfaces separately.
- Build a contrast matrix: Tabulate every foreground against every background in your palette — the matrix reveals compliant pairings at a glance.
- Verify focus indicators: Keyboard focus rings must contrast against both the component and its background; check all three relationships.
- Test with filters: Simulate common vision deficiencies on passing pairs — contrast and color perception are independent axes.
- Integrate into design reviews: Make contrast verification a checklist item in every design critique, not an occasional audit activity.
- Educate stakeholders: Demonstrate a failing pair versus a passing one in reviews — the visual comparison teaches faster than guidelines.
Key Features of Our Contrast Checker
- Official WCAG formula: Relative luminance and contrast ratio computed exactly per the W3C specification — the same math auditors and regulators use.
- AA and AAA verdicts: Clear pass/fail for both conformance levels, so you know whether you meet baseline or exemplary standards.
- Normal vs large text: Separate thresholds for body text and large text reflect the standard’s actual requirements instead of one-size-fits-all.
- Exact ratio display: The precise numeric ratio (e.g., 4.62:1) is shown for documentation, reports and design-system records.
- Live recalculation: Adjust either color and watch the ratio and verdicts update instantly — fixing contrast becomes a fluid, visual process.
- Flexible color input: Hex codes, RGB values or visual pickers all work, meeting you wherever your colors currently live.
- Plain-language verdicts: Pass and fail stated unambiguously — no interpreting decimal ratios against memorized thresholds yourself.
- Private local checking: Palette and design colors never leave your browser during verification.
- Free with no signup: Unlimited checks at zero cost. Accessibility verification should never be gated.
- Standards-accurate: The math matches the W3C specification exactly, so verdicts align with professional audit tools.
- Designer-friendly: Plain pass/fail language means no WCAG expertise is required to use the results correctly.
- Iteration-optimized: Live updates make the fix loop — adjust, check, adjust — feel instantaneous.
- Audit-ready output: Exact ratios with AA/AAA verdicts drop directly into accessibility conformance reports.
- Education built in: Using the tool teaches the thresholds, turning every check into accessibility literacy.
Contrast Checker Use Cases
Web design QA
Teams check every text-background pairing before launch, catching the light-grey-on-white body copy that fails AA and frustrates real users.
Design system governance
Systems document contrast ratios for each approved pairing, and the checker is the instrument that certifies them.
Legal compliance
Organizations subject to accessibility regulations verify AA compliance proactively rather than discovering violations through complaints.
Presentation design
Speakers check slide text against backgrounds — projectors wash out contrast mercilessly, so passing on screen means surviving the stage.
Email template testing
Email clients render in unpredictable contexts; verified contrast ratios keep campaigns readable everywhere.
Brand palette validation
Brand teams check all usable text-background combinations within a palette, publishing only the pairings that pass.
Mobile app review
Small screens and variable lighting make mobile contrast critical; teams verify every screen before release.
Government services
Public-sector sites face strict accessibility mandates — systematic contrast verification is basic compliance.
Design handoff QA
Engineers verify implemented colors against specified ratios, catching drift between design and code.
Marketing compliance
Campaign teams prove accessible contrast for regulated industries before launch.
Why Use Our Free Contrast Checker?
The reason to use our free Contrast Checker is that human eyes are terrible contrast meters. Designers routinely approve pairings that look fine on their calibrated monitors in dim studios — then fail real users on phones in sunlight, aging eyes and cheap displays. The WCAG formula exists precisely because perception is unreliable; it reduces readability to objective luminance math. Checking with the official formula replaces I think it is fine with it measures 7.2:1, and that objectivity is what accessibility requires.
The second reason is that contrast failures are the most common and most fixable accessibility barrier on the web. Unlike complex ARIA implementations or keyboard-trap debugging, most contrast issues resolve with small lightness adjustments that change nothing about the design’s character. The checker makes those fixes trivially discoverable: nudge, watch the ratio climb, stop at pass. High impact, near-zero cost — the best kind of accessibility work.
Finally, it is instant, private and free, which means there is no excuse for skipping the check. Accessibility auditing tools can be expensive and complex, but contrast verification — the single highest-value check — takes ten seconds here. When the barrier to doing the right thing is zero, doing it becomes a habit, and habits compound into genuinely inclusive products.
Pull the lens back further and contrast checking exemplifies a maturing web: one where inclusion is engineered in, not bolted on. Two decades ago accessibility was an afterthought practiced by specialists; today it is a legal requirement, a design discipline and — via tools like this — a ten-second habit. Each check performed, each failing pair fixed, each ratio documented is a small brick in a more usable internet. The checker will not fix accessibility alone, but it makes the single highest-value verification so frictionless that skipping it becomes the harder choice. That is how cultures change: not through mandates alone, but through tools that make the right thing the easy thing.
Tips for Best Results
- Check text at the sizes it will actually render — small body copy needs the full 4.5:1 while large headings pass at 3:1.
- Test placeholder and disabled-state text too; these low-contrast culprits fail most often and frustrate most quietly.
- Remember that brand colors rarely pass as text on white — reserve vivid hues for large elements and use darkened variants for body copy.
- Verify contrast over images and gradients against the busiest underlying area, not the calmest corner.
- Do not rely on bold or large text to excuse weak body-copy contrast — the thresholds exist for real reading conditions.
- Document passing ratios in your design tokens so future designers inherit compliant pairings, not just pretty colors.
- Re-check after any palette change; a single revised brand color can silently break a dozen approved pairings.
- Pair contrast checking with color-blindness simulation — luminance contrast and hue perception are independent accessibility axes.
- For data visualization, ensure labels and legends pass, not just decorative elements — information must be readable.
- Automate contrast checks in your design-system CI so regressions get caught before they ship.
- Remember that logos and decorative elements are exempt — focus verification on meaningful text and controls.
- When in doubt, go darker on text; slightly-too-dark never harmed readability, slightly-too-light often does.
- Test with real users who have low vision whenever possible — ratios are necessary but not sufficient.
- Check text over video thumbnails too — motion backgrounds need the same contrast discipline as static ones.
- Do not forget borders and icons that convey meaning; WCAG covers meaningful non-text elements as well.
- When brand guidelines conflict with contrast, escalate early — accessibility law outranks brand preference.
- Schedule contrast audits with every major release; palettes drift and regressions hide in diffs.
- Build a wall of shame (privately) with before/after pairs to celebrate the team’s accessibility progress.
- Pair contrast data with user quotes about readability struggles — numbers plus stories drive change.
- Champion contrast standards in your organization’s design principles document for lasting impact.
- When tools disagree on ratios, verify against the W3C formula manually — precision matters in compliance contexts.
Contrast Checker FAQs
Is the Contrast Checker free?
Yes — unlimited checks, no account, no cost. It is part of our permanently free tools collection. Every check is a step toward interfaces that include rather than exclude.
What is a good contrast ratio?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1 respectively. Higher is always better. AA at 4.5:1 normal and 3:1 large is the baseline; AAA raises the bar to 7:1 and 4.5:1.
How is the ratio calculated?
Using the W3C’s relative-luminance formula: each color’s luminance is computed with gamma correction, then the ratio of lighter to darker (plus 0.05 each) is derived. The specification’s math is the single source of truth auditors and courts recognize.
What counts as large text?
Roughly 18pt (24px) regular or 14pt (19px) bold and above. The checker applies the correct thresholds for each category. Large text means roughly 24px regular or 19px bold and up — the checker applies correct thresholds.
My brand color fails — what now?
Darken it for text use while keeping the pure hue for large graphic elements. Most brands need a text-safe variant alongside the signature color. Keep the vivid hue for graphics and derive a darker text-safe variant for copy.
Does it check text over images?
Check against the dominant tone behind the text, or better, add a scrim/overlay and check against that. The checker evaluates solid color pairs. Derive a darker text-safe variant for copy while reserving the vivid hue for graphics.
Is AA or AAA required?
AA is the widely adopted legal and practical baseline; AAA is stricter and expected in some contexts. Aim for AA everywhere and AAA where feasible. Verification is entirely local; your palette never leaves your device.
Is my color data uploaded?
No. All calculations happen locally in your browser; your palette never leaves your device. All verification is local; your design colors never leave your device.
Readable design is inclusive design — and the free Contrast Checker verifies it with the official WCAG formula, exact ratios and unambiguous AA/AAA verdicts for both normal and large text. Check your pairings above, fix failures with small lightness adjustments and ship interfaces everyone can read comfortably. Then keep the color workflow strong with the Color Converter for format translation, the Gradient Generator for backgrounds and the Brand Color Finder for famous hex codes. Or explore color tools and all free online tools.