Check WCAG accessibility contrast ratios
Color contrast refers to the difference in luminance between text (foreground) and its background. Proper contrast ensures that text is readable by people with visual impairments, including those with low vision or color blindness. The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios for accessibility compliance.
This tool calculates the contrast ratio between two colors and determines if it meets WCAG standards for normal text (AA: 4.5:1, AAA: 7:1) and large text (AA: 3:1, AAA: 4.5:1).
All processing is done locally in your browser – your color choices never leave your device.
Step 1: Enter text color (foreground) using HEX, RGB, or color picker.
Step 2: Enter background color using HEX, RGB, or color picker.
Step 3: Click "Check Contrast" to calculate the ratio.
Step 4: See if the combination passes WCAG AA or AAA standards.
Step 5: Copy the results using the "Copy Results" button.
The sample text preview updates to show your chosen colors.
Black on White: #000000 on #FFFFFF → Ratio 21:1 ✅ AAA Pass
Gray on White: #888888 on #FFFFFF → Ratio 3.0:1 ❌ Fails AA
Dark Blue on Light Blue: #0000FF on #ADD8E6 → Ratio 4.2:1 ✅ AA Pass