Color Contrast Checker
Check WCAG color contrast ratios online for accessibility compliance. Free contrast checker with AA and AAA level pass/fail results.
WCAG Compliance
Preview
Sample Heading
This is sample text to preview the color contrast. Make sure your text is readable against the background color.
Small text should also be checked for readability. WCAG AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text.
WCAG Guidelines:
- Level AA: Normal text 4.5:1, Large text 3:1
- Level AAA: Normal text 7:1, Large text 4.5:1
- Large text: 18pt+ or 14pt+ bold
About Color Contrast Checker
Check color contrast ratios for WCAG accessibility compliance. Ensure your text is readable against its background color for users with visual impairments.
How to Use Color Contrast Checker
Enter the foreground color
Use the color picker or paste a hex or RGB code for the text color. This is typically your body text color or the text color used inside a button.
Enter the background color
Use the color picker or paste a hex or RGB code for the background. This is the page background, button background, or card background — whatever sits behind the foreground text.
View the contrast ratio
The checker shows the ratio (something like 4.5:1) along with pass or fail flags at WCAG AA (4.5:1 for normal text, 3:1 for large) and AAA (7:1 for normal, 4.5:1 for large).
Adjust if needed
If the pairing fails, darken the foreground or lighten the background. Aim for AA at minimum for legal compliance, or AAA for best practice. Most tools also suggest accessible alternatives close to your starting colors so you don't have to hunt for them yourself.
When to Use Color Contrast Checker
Accessibility compliance
WCAG 2.1 sets specific contrast ratio minimums — 4.5:1 for AA on normal text, 7:1 for AAA, and 3:1 for large text. The checker measures the contrast between any two colors and reports the compliance level. This matters for ADA compliance in the US, EU accessibility regulations, and Section 508 requirements for federal sites.
Dark mode design
Dark mode UIs reverse the usual contrast challenge. Instead of dark text on light backgrounds, you have light text on dark, and the same WCAG ratios still apply. The checker helps verify that your dark mode colors actually meet accessibility standards rather than just looking edgy. Useful when you're building theme switching or dual-mode designs.
Brand color verification
A brand color on a brand background often turns out to have insufficient contrast for body text. The checker reveals where compliance gaps exist before they become accessibility complaints. This shows up most in marketing materials, brand guideline definition, and any place where text sits on a branded element that hasn't been tested for readability.
Inclusive design and user testing
Sufficient contrast helps everyone, not just users with documented disabilities. Low vision, color blindness, environmental factors like sunlight glare on a phone screen — all of these benefit from designs that meet contrast standards. The checker is a fast way to verify your work for real-world conditions, not just the controlled lighting of an office.
Color Contrast Checker Examples
Black on white (best)
Foreground: #000000, Background: #FFFFFFRatio: 21:1 (the maximum possible). Passes both AA and AAA.Pure black on pure white gives you the maximum possible contrast and always passes every standard. It can be visually harsh, though, which is why many designs use a slightly off-black like #222 to soften the effect while keeping the contrast comfortably high.
Subtle gray text
Foreground: #888888, Background: #FFFFFFRatio: 3.54:1. Fails AA for normal text. Passes AA Large for text 18pt and up or 14pt bold.A common 'subtle' gray that fails AA for normal body text. It's only acceptable for large text (24px and up), placeholder text, or decorative non-essential elements. For normal body text, drop to #757575 or darker to actually meet AA.
Brand color check
Foreground: #4A90E2 (blue), Background: #FFFFFFRatio: 3.95:1. Fails AA for normal text but passes AA for large text. Fails AAA.A common brand blue that fails AA for body text but works for headlines. Use a darker variant like #2D6CB6 (which gives you 6.7:1) for body. Brand colors frequently need a darker companion shade specifically for accessibility-sensitive uses.
Tips & Best Practices for Color Contrast Checker
- 1.Aim for AAA (7:1) whenever you reasonably can. AA at 4.5:1 is the minimum legal compliance level; AAA is the recommended best practice, and some users genuinely need that higher ratio to read comfortably.
- 2.Don't rely on color alone to communicate state. Pair color with icons, underlines, or patterns so the meaning still reads for users with color blindness. WCAG 1.4.1 covers this requirement.
- 3.Test designs in real conditions, not just in your design tool. Outdoor sunlight, low display brightness, and oblique viewing angles all reduce perceived contrast. Don't lean entirely on the calculator number.
- 4.Pick from an accessible color palette when starting a new project. Many design systems (Material Design, IBM Carbon, GitHub Primer) provide WCAG-compliant color systems where the swatches have been pre-validated for common pairings.
- 5.For text on images, add an overlay or background blur to control the contrast deliberately. Variable image backgrounds make it impossible to guarantee contrast otherwise, since you can't know what will be behind the text.
- 6.Don't sacrifice readability for aesthetics. Trendy subtle gray text consistently fails accessibility and frustrates users with anything less than perfect vision. Choose readable colors first, then make them feel branded.
Frequently Asked Questions
Related Tools
Color Converter
Convert colors between HEX, RGB, HSL, and CMYK formats online. Free color converter with instant preview and copy-ready values.
HEX to RGB Converter
Convert HEX color codes to RGB and HSL values online instantly. Free HEX to RGB converter with color preview and CSS code output.
RGB to HEX Converter
Convert RGB color values to HEX format online instantly. Free RGB to HEX converter with visual color picker and CSS code output.
Color Picker
Pick colors visually and get HEX, RGB, HSL, and CMYK values online. Free color picker with palette history and CSS code generation.
Color Palette Generator
Generate beautiful color palettes and schemes online. Free palette generator with complementary, triadic, and analogous color harmonies.
CSS Gradient Generator
Create CSS gradients visually online with a drag-and-drop editor. Free gradient generator with linear, radial options and CSS output.