Output will appear here
Click in the output to select all text
Output will appear here
Click in the output to select all text
Comprehensive WCAG 2.1 AA & AAA compliance test for normal text, large text, and UI components.
Find the closest accessible text color (black, white, or adjusted hue) meeting WCAG AA.
Simulate how colors appear to Deuteranopia, Protanopia, Tritanopia, and Achromatopsia vision.
Visual color picker showing real-time HEX, RGB, HSL, HSV, and CMYK formats.
Calculate Euclidean and CIE76 Delta E perceptual color distance between two colors.
Convert simultaneously across HEX, RGB, RGBA, HSL, HSLA, HSV, CMYK, and HWB formats.
This contrast ratio checker calculates the precise WCAG contrast ratio between any text color and background color, then tells you instantly whether the combination passes AA or AAA accessibility standards for both normal and large text. It's built for web developers implementing accessible interfaces, designers choosing text-on-background color pairings, and QA teams auditing sites for WCAG compliance. Enter or pick a foreground and background color and the tool calculates the exact ratio using the official WCAG relative luminance formula, showing clear pass/fail badges for AA normal text (4.5:1), AA large text (3:1), AAA normal text (7:1), and AAA large text (4.5:1). All calculations run locally in your browser, so the color combinations you're testing, which may reflect unreleased branding or products, are never uploaded or logged. Because the formula matches the official W3C specification exactly, the ratio and pass/fail results you see are the same ones an accessibility auditor or automated testing tool would report. Enter your colors below to check the contrast ratio.
WCAG AA requires a contrast ratio of at least 4.5:1 for normal text and at least 3:1 for large text (18pt or 14pt bold and larger).
WCAG AAA requires a contrast ratio of at least 7:1 for normal text and at least 4.5:1 for large text.
It's calculated from the relative luminance of both colors using the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 is the darker one's.
Large text is defined as at least 18pt (24px) regular weight, or at least 14pt (18.66px) bold.
Yes, WCAG 2.1's 1.4.11 Non-text Contrast criterion requires a minimum 3:1 ratio for UI components and graphical objects, separate from text contrast.
Perceived readability can be misleading; the WCAG formula is based on measured luminance, so some combinations that look fine to one person's eyes still fall short of the numeric standard.
WCAG Contrast Ratios Explained: AA vs AAA
What the WCAG contrast ratio numbers mean, how 4.5:1 and 7:1 were chosen, when large text qualifies for 3:1, and how to decide whether you need AA or AAA.
How to Fix Failing Color Contrast on Your Site
A step-by-step process to fix color contrast failures without wrecking your brand palette: triage by impact, shift lightness not hue, and repair tokens at the source.
Why You Shouldn't Rely on Color Alone
WCAG 1.4.1 Use of Color is Level A. Exactly what color alone accessibility forbids, the four places designs break it, and non-color indicators that work.