Color Contrast Checker
Professional WCAG accessibility contrast checker. Test color combinations for AA/AAA compliance, preview text readability, and get color suggestions to meet accessibility guidelines.
Choose Your Colors
Enter the text color and background color you want to test for accessibility compliance.
Live Preview
Heading Text (24px Bold)
This is regular body text at 16px. Good contrast ensures that all users, including those with visual impairments, can read your content comfortably.
This is small text at 12px - harder to read with low contrast.
This is a link - should also be readable
What is WCAG?
WCAG (Web Content Accessibility Guidelines) sets standards for making web content accessible. Level AA is the standard requirement, while AAA is the highest level of accessibility.
Requirements
Color Information
Need help fixing low contrast? Below are color alternatives that maintain your brand look while meeting WCAG accessibility standards.
Adjust Text Color
Adjust Background Color
:root {
--text-color: #000000;
--bg-color: #FFFFFF;
/* Contrast Ratio: 21:1 (AAA) */
}
{
"foreground": "#000000",
"background": "#FFFFFF",
"contrastRatio": 21,
"compliance": {
"normalAA": true,
"normalAAA": true
}
}
Quick Presets
Click any preset to test it instantly
WCAG Contrast Requirements
Keyboard Shortcuts
Why Color Contrast Matters
Color contrast is fundamental to web accessibility. Adequate contrast between text and background colors ensures content is readable for everyone, including users with visual impairments, color blindness, or those viewing content in challenging lighting conditions.
The Web Content Accessibility Guidelines (WCAG) 2.1 establish specific contrast ratio requirements that websites must meet to be considered accessible. Compliance is not just good practice—it's often a legal requirement under laws like the ADA, Section 508, and EN 301 549.
How to Use the Color Contrast Checker
Enter Your Colors
Use the color pickers or type HEX codes for your foreground (text) and background colors. The preview updates in real-time.
Check Compliance
View the contrast ratio and compliance badges. Green indicates passing, red indicates failing WCAG requirements.
Get Suggestions
If your colors don't meet requirements, check the Suggestions tab for accessible alternatives that maintain your color palette.
Export Results
Export your accessible color combination as CSS variables, JSON data, or download a full accessibility report.
Key Features
WCAG 2.1 Compliance
Test against the latest accessibility standards with AA and AAA level checking.
Live Preview
See exactly how your text will appear with real-time preview including different text sizes.
Smart Suggestions
Get color alternatives that meet accessibility requirements while staying close to your original palette.
Vision Simulation
Preview how your colors appear to users with different types of color blindness.
Export Reports
Download accessibility reports or export color data in CSS and JSON formats.
Instant Results
All calculations happen instantly in your browser—no server processing needed.