WCAG & APCA Contrast Checker
Verify color accessibility with WCAG 2.1 ratios and modern APCA scores. Features real-time vision deficiency simulation and automatic color fixing.
Was this tool helpful?
How to Use
Designing accessible interfaces starts with choosing the right color combinations. Our tool provides two ways to measure success.
Step-by-Step Guide
- Select Colors: Use the hex input or the color picker to define your foreground (text) and background colors.
- Check Ratios: Observe the WCAG 2.1 Ratio. Aim for at least 4.5:1 for standard text (AA compliance).
- Review APCA: Look at the APCA Score for a more modern, perceptually accurate contrast reading.
- Simulate Vision: Use the dropdown to see how your colors look to users with various forms of color blindness.
- Magic Fix: If your colors fail, use the Magic Fix buttons to automatically find the closest compliant variation.
About This Tool
Beyond Standard Ratios
While WCAG 2.1 has been the industry standard for years, its mathematical model often falls short in dark mode or with specific color hues (like bright orange or blue).
APCA (Advanced Perceptual Contrast Algorithm) is designed to solve these issues by using a model that more closely follows how the human eye actually processes light and color contrast, accounting for font weight and size as well.
FAQ
What is the difference between WCAG 2.1 and APCA?
WCAG 2.1 uses a simple mathematical ratio (like 4.5:1) which doesn't perfectly match human perception. APCA (Advanced Perceptual Contrast Algorithm) is the draft standard for WCAG 3.0, using a more complex model that accounts for context and color polarity.
What contrast ratio is required for WCAG AA?
For standard text, a contrast ratio of at least 4.5:1 is required. For large text (18pt or 14pt bold), a ratio of 3:1 is acceptable.
How does the Vision Deficiency Simulator work?
The simulator applies standard mathematical color matrices via SVG filters to the preview pane. This allows you to see how your color choices appear to people with Protanopia, Deuteranopia, Tritanopia, or Achromatopsia.
What is the 'Magic Fix' feature?
The Magic Fix button uses the OKLCH color space to find the nearest color to your original choice that meets the selected accessibility target (AA or AAA), preserving your original hue as much as possible.