FAQ
Common questions about Color Contrast Checker.
What is WCAG color contrast?
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and background to ensure readability for people with visual impairments. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1 respectively.
How is contrast ratio calculated?
The contrast ratio is calculated using the relative luminance of the two colors, following the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 is the darker.
Can I use named colors like 'red'?
Yes, our tool accepts standard CSS color names (e.g., 'red', 'blue', 'white') and converts them to hex values for calculation.
What if my colors fail the contrast check?
The tool provides alternative color suggestions that meet the required ratio, helping you adjust your design while maintaining accessibility.