WCAG Color Contrast Checker & Ratio Calculator
Ensure your digital products are accessible to all users. Test foreground and background color pairs against WCAG 2.1 compliance criteria with live AA and AAA rating indicators.
How to Use WCAG Color Contrast Checker
Select Colors
Enter foreground and background hex codes or use the native color picker.
Evaluate Contrast
Review the calculated contrast ratio (e.g., 4.5:1 or 7.0:1) and compliance badges.
Preview Text Samples
Inspect how normal body text, bold headers, and UI components appear in real time.
About WCAG Color Contrast Checker
Uses the official W3C relative luminance algorithm: L = 0.2126 * R + 0.7152 * G + 0.0722 * B (with sRGB gamma decompression) to calculate the exact contrast ratio (L1 + 0.05) / (L2 + 0.05).
Supported Formats
Operational Limits
- •Calculations conform to the standard relative luminance formula defined in WCAG 2.1.
Key Features
- Real-time contrast ratio calculation up to 21:1
- Instant WCAG 2.1 Level AA & AAA pass/fail validation
- Support for normal text, large text (18pt+), and UI components
- Interactive color swap toggle for quick background/text inversion
- One-click copy for Hex values and contrast ratios
Frequently Asked Questions
Related Tools
More in Accessibility & A11y ToolsColor Blindness Simulator
Simulate how your design and color palettes appear to users with Protanopia, Deuteranopia, Tritanopia, and Achromatopsia.
APCA Contrast Calculator
Calculate Advanced Perceptual Contrast Algorithm (APCA / WCAG 3) Lc values based on modern human spatial vision perception.
Large Text Contrast Checker
Specialized WCAG validator for large typography (18pt/24px normal or 14pt/18.66px bold) requiring 3:1 minimum contrast.