Color Contrast Checker
Check if your color combinations meet WCAG accessibility standards for text readability.
WCAG has lower requirements for large text
Ratio ≥ 4.5:1
Passes for normal text
Ratio ≥ 3:1
Passes for large text
Ratio ≥ 7:1
Passes for normal text
Ratio ≥ 4.5:1
Passes for large text
Sample Heading
This is sample text to preview how your color combination will look. The quick brown fox jumps over the lazy dog.
Small text with reduced opacity
Aa
Large Text (24px)
Aa
Normal Text (16px)
Foreground
#000000Background
#ffffffcolor: #000000; background-color: #ffffff;Why Contrast Matters
Low contrast text is hard to read for everyone, and impossible for some users with visual impairments. WCAG (Web Content Accessibility Guidelines) sets minimum contrast ratios to ensure text is readable.
This checker calculates the contrast ratio between your foreground and background colors, then tells you if they pass WCAG AA and AAA standards for normal and large text.
WCAG Requirements
Required for most websites.
Best practice for public content.
Tips for Better Contrast
Dark text on light backgrounds
Safest choice for readability. Near-black (#1a1a1a) on near-white (#fafafa) passes all requirements with room to spare.
Avoid pure black on pure white
#000 on #fff has maximum contrast but causes eye strain. Use #1a1a1a or #333 for reduced glare while still passing AAA.
Test in grayscale
If your design works in black and white, it'll work for colorblind users. Remove color and check if text is still readable.
Don't rely on color alone
Links should have underlines or other indicators. Error states need icons or text, not just red coloring.
Common Questions
What counts as "large text"?
18pt (24px) or larger, or 14pt (18.5px) bold. Headings usually qualify, body text doesn't. UI components like buttons have their own considerations.
Do disabled elements need contrast?
WCAG 2.1 doesn't require contrast for disabled elements, but WCAG 2.2 adds requirements. Best practice is to ensure they're still readable.
What about logos and incidental text?
Logos, decorative text, and inactive UI components are exempt. But if the text conveys information, it should be readable.
Other Free Tools
CSS Gradient Generator
Create linear, radial, and conic gradients with live preview. Generate CSS gradient code for backgrounds and UI. Free online gradient maker.
CSS Box Shadow Generator
Create multi-layer box shadows with blur, spread, and inset options. Generate beautiful shadows for buttons, cards, and UI elements. Free online CSS shadow tool.