Color Contrast Checker
Check color contrast ratios for WCAG AA and AAA compliance. Ensure your text is readable and accessible.
About This Tool
The Color Contrast Checker evaluates the contrast ratio between a foreground text color and a background color, then reports whether the combination meets WCAG (Web Content Accessibility Guidelines) standards at AA and AAA levels. Accessible color contrast is a legal requirement in many jurisdictions and an ethical necessity for inclusive design.
WCAG 2.1 defines minimum contrast ratios for text readability. Normal text requires at least 4.5:1 for AA compliance and 7:1 for AAA. Large text (18px bold or 24px regular) has relaxed thresholds of 3:1 for AA and 4.5:1 for AAA. Non-text elements like icons and UI controls require a minimum of 3:1.
This tool calculates the relative luminance of both colors using the sRGB formula and computes the precise contrast ratio. It clearly indicates pass or fail status for each WCAG level and text size, along with suggestions if your combination falls short. Building accessible websites starts with choosing the right color pairs.
Formula / How It Works
Frequently Asked Questions
Related Tools
Color Picker
Pick any color visually and get values in hex, RGB, HSL, and CMYK. Interactive color wheel with precision.
Color ToolsColor Palette Generator
Generate harmonious color palettes. Create complementary, analogous, triadic, and split-complementary schemes.
Color ToolsHex to RGB Converter
Convert hexadecimal color codes to RGB values instantly. Supports shorthand and 8-digit hex with alpha.
Color Tools