Color Contrast
Check color contrast ratios for WCAG accessibility compliance online for free. Test foreground and background colors for AA and AAA standards.
Runs entirely in your browser — files never uploaded
Heading Text Sample
The quick brown fox jumps over the lazy dog. This paragraph demonstrates how body text looks at regular size with your chosen foreground and background colors.
Small caption text for reference.
Contrast Ratio
14.63:1
AA Normal Text
≥ 4.5:1
AA Large Text
≥ 3:1
AAA Normal Text
≥ 7:1
AAA Large Text
≥ 4.5:1
How to use Color Contrast
- 1. Pick colors. Enter a foreground (text) and background color using the hex input or color picker.
- 2. Check ratio. The contrast ratio and WCAG AA/AAA compliance results update instantly.
- 3. Fix issues. If a check fails, use the suggested closest passing color to meet the standard.
FAQ
What contrast ratio do I need?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 for normal text and 4.5:1 for large text.
What counts as large text?
Text that is at least 18pt (24px) or 14pt (18.66px) bold is considered large text under WCAG.
How is the contrast ratio calculated?
Using the WCAG 2.x formula: relative luminance of the lighter color plus 0.05, divided by the relative luminance of the darker color plus 0.05.
Related tools
- Color PickerPick any color from an image and get its HEX, RGB, and HSL code online for free. Click any pixel to grab the exact color. No signup.
- Favicon GeneratorGenerate all favicon sizes (16x16, 32x32, 180x180, 512x512) from one image online for free. Download as a ZIP. No signup.
- Color ConverterConvert colors between HEX, RGB, HSL, and CMYK online for free. Live preview with all formats at once. No signup.
- CSS GradientCreate beautiful CSS gradients with live preview online for free. Linear and radial gradients. Copy CSS code in one click. No signup.
- Box ShadowCreate CSS box shadows with a visual editor online for free. Adjust offset, blur, spread, color, and inset. Copy CSS in one click. No signup.
- Border RadiusCreate CSS border-radius with per-corner control online for free. Visual editor with live preview. Copy CSS in one click. No signup.