Color Contrast Checker
Compare two opaque sRGB colors using WCAG text contrast ratios. See precise ratio estimates, unrounded threshold decisions and clear invalid-color feedback.
Projects using Color Contrast Checker
This tool is part of these guided projects. Each project provides step-by-step instructions with checklists and all the tools you need in one place.
Related Tools
Tools you might need next
Professional color picker with HEX, RGB, and HSL conversion, WCAG contrast checking, and palette generation. Pick colors and copy CSS-ready values instantly.
Generate harmonious color palettes from a base color. Complementary, analogous, triadic, tetradic, monochromatic. CSS variables, Tailwind config, WCAG contrast.
Convert HEX color to RGB. #ff5733 to rgb(255,87,51). For CSS and design. Free design tool with instant browser-based results — no account, works on desktop
Reference & details
How it works
Updated September 2026
How it works
Updated September 2026Opaque sRGB relative luminance
Convert each 8-bit sRGB channel to linear light, calculate relative luminance and divide (lighter + 0.05) by (darker + 0.05). The display is rounded; threshold decisions use the unrounded ratio.
Text-specific thresholds
Normal text requires 4.5:1 for AA and 7:1 for AAA. Large text, at least 18pt or 14pt bold, requires 3:1 for AA and 4.5:1 for AAA. Check actual rendered size and backgrounds separately.
Updated: September 2026
Example Scenarios
Enter the actual foreground and opaque background colors, inspect the sample and copy the values and threshold results.
Compare a text color with its opaque backing, then check the overlay at the real player size and over representative footage.
Common Mistakes to Avoid
Common Mistakes to Avoid
Treating a rounded ratio as a pass
Use the unrounded threshold result. A displayed approximation alone does not establish a pass.
Applying one color pair to a changing or translucent background
This tool accepts opaque #RGB or #RRGGBB sRGB colors. Check the actual rendered background and text size.
FAQ
About Color Contrast Checker
Compare two opaque sRGB colors using WCAG text contrast ratios. See precise ratio estimates, unrounded threshold decisions and clear invalid-color feedback.