Contrast Checker
Measure WCAG 2.2 AA and AAA contrast ratios for single color pairs or multi-color design system palettes, and apply passing fixes in one click.
Large text (24px regular or 19px bold)
Normal body text at 16px. The quick brown fox jumps over the lazy dog, 0123456789.
UI componentRows are foreground text and columns are background surfaces. Click any cell to inspect or apply a passing fix.
Settings
Fix targets AA
How to Use Contrast Checker in 3 Steps
Choose Color Pair or Palette Grid
Enter two foreground and background colors in Color Pair, or switch to Palette Grid to paste up to 12 hex codes or --token: #RRGGBB lines.
Check WCAG 2.2 AA and AAA Badges
Review live ratios against 4.5:1 AA normal text, 7:1 AAA normal text, and 3:1 large text or UI badges, or filter the palette matrix by threshold.
Apply Fixes and Export Reports
Click Use this or any failing matrix cell to apply a hue-preserving lightness fix, then export your audit as TXT, CSV, Markdown, or PNG.
WCAG 2.2 AA and AAA Contrast Threshold Matrix
| Element Type & Criterion | Level AA | Level AAA | Size & Measurement Scope |
|---|---|---|---|
| Normal Body Text (SC 1.4.3 / 1.4.6) | 4.5:1 | 7.0:1 | Text smaller than 18pt (24px) regular or smaller than 14pt (18.66px) bold. |
| Large Text & Headings (SC 1.4.3 / 1.4.6) | 3.0:1 | 4.5:1 | Typography at or above 18pt (24px) regular or 14pt (18.66px) bold. |
| UI Components & Icons (SC 1.4.11) | 3.0:1 | Not defined | Input borders, button outlines, focus rings, standalone icons, and chart segments against adjacent surfaces. |
| Ununderlined Inline Links (SC 1.4.1 / 1.4.3) | 3.0:1 + 4.5:1 | 3.0:1 + 7.0:1 | Needs 3.0:1 against surrounding body text plus full text contrast against the background. |
| Disabled Controls & Logos (SC 1.4.3) | Exempt | Exempt | Inactive UI states, decorative elements, and brand logotypes carry no minimum WCAG ratio. |
Contrast Checker: Frequently Asked Questions
How does WCAG 2.2 calculate color contrast ratios?
WCAG 2.2 converts both sRGB colors to linear relative luminance and divides the lighter luminance plus 0.05 by the darker luminance plus 0.05. Ratios range from 1:1 (identical colors) to 21:1 (pure black on pure white).
How can I audit an entire multi-color design system palette at once?
Switch to the Palette Grid tab in the controls pane and paste up to 12 hex codes or --token: #RRGGBB CSS variables to cross-check every pair in one matrix.
What contrast ratio should I use for dark mode surfaces like #191919?
Keep body text at 4.5:1 or higher against dark surfaces such as Notion's #191919 canvas. See our account-free Notion widgets guide for balanced dark-mode surface and accent hex pairings.
How does the tool measure semi-transparent RGBA or HSLA colors?
Semi-transparent foreground colors composite over your chosen background color before the luminance math runs. Transparent background colors composite over pure white (#FFFFFF) first.
How does the automatic Use this color fix preserve my brand hue?
The solver locks your original HSL hue and saturation while stepping lightness up or down by 1% increments. It stops at the nearest hex code that passes your chosen 4.5:1, 7:1, or 3:1 target.
Should my website target WCAG 2.2 Level AA or Level AAA?
Target WCAG 2.2 Level AA (4.5:1 normal text and 3:1 large text or UI) for standard legal and enterprise compliance. Use Level AAA (7:1) for long-form documentation and low-vision reading modes.
Explore All Labs Tools
Generate QR codes, build shareable links, convert units, and run everyday browser utilities.