Accessibility Contrast Checker
Check contrast between text and background colors. Enter your colors below to see the ratio and WCAG AA/AAA pass or fail. Build palettes first with our palette generator, then test pairs here.
Use the tool below to compare foreground and background colors. Add colors and see contrast ratios for all pairs.
Text Size (Applies to all checks)
Color Group #1 (2 colors)
#000000#FFFFFFContrast Matrix - All Color Combinations
| Color 1 | Color 2 | |
|---|---|---|
| Color 1 | 21.00:1 AAAAA | |
| Color 2 |
Detailed Contrast Results
Preview Text
What Is Color Contrast?
Color contrast is the difference in luminance between a foreground color (e.g. text) and a background color. The contrast ratio is a number from 1:1 (no difference) to 21:1 (maximum). For example, black text on a white background has a high ratio; light gray text on a light gray background has a low ratio. Text and background contrast directly affects readability: low contrast strains the eye and excludes users with low vision or in bright environments.
An accessibility contrast checker computes this ratio for any two colors you supply. You enter a text color and a background color; the tool returns the ratio and whether the pair meets common accessibility thresholds. This helps you choose accessible color contrast for body text, headings, buttons, and links.
Why Accessibility Matters
Readable contrast benefits everyone. Users with low vision, color blindness, or age-related vision changes rely on sufficient contrast to read content. In bright light or on small screens, low-contrast text becomes hard to read even for users without impairments. Accessible color contrast improves usability and supports inclusive design.
Designers and developers use a color accessibility tool to test pairs before release. Checking contrast during design and development avoids rework and ensures that interfaces and marketing materials meet common expectations for readable text.
WCAG Contrast Basics: AA and AAA
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios for text. Level AA is the baseline: normal text must have at least 4.5:1 contrast against the background; large text (18pt or 14pt bold) must have at least 3:1. Level AAA is stricter: 7:1 for normal text and 4.5:1 for large text. This WCAG contrast checker evaluates your pairs against both levels so you can see whether you meet AA, AAA, or both.
Normal text means typical body copy; large text means 18pt (24px) or larger, or 14pt (about 19px) or larger if bold. The tool lets you switch between normal and large text so you get the right threshold for each use case. Many projects aim for AA; AAA is recommended where possible for better readability.
How This Tool Helps Designers
Designers use this color contrast checker to test text-on-background pairs from palettes, mockups, and style guides. Enter the hex values for your text and background; the tool shows the ratio and AA/AAA pass or fail. You can test multiple pairs in one place (e.g. body text on surface, link on surface, button text on button) so you know which combinations are accessible before handoff.
Frontend developers can re-check the same hex values in code. Brand designers can verify that headline and body text on brand backgrounds meet contrast. The tool supports WCAG compliance by applying the same formulas and thresholds used in guidelines. Check color contrast for light and dark themes, marketing banners, and app UI so your choices are readable and consistent.
Check Contrast Instantly
Use the accessibility contrast checker above to check color contrast for any text and background pair. Add your colors, select normal or large text, and see the ratio and pass/fail for AA and AAA. No sign-up required. Test as many pairs as you need for your project. If a pair fails, adjust the text or background color and re-check until you reach an accessible color contrast.
After building a palette with a color palette generator, run your text and background combinations through this tool. Not every pair in a palette will pass; use the checker to identify which combinations work for body text, headings, and buttons so your final palette supports accessible design.
Practical Examples
Common use cases: body text on a white or off-white background; link color on the same background; button text on a primary button color; placeholder text on an input background; label text on a card or modal. For each pair, enter the foreground (text) and background colors in the tool and check the ratio. Accessible color contrast for body text usually means at least 4.5:1 (AA); for large headings or buttons, 3:1 may be sufficient for AA.
Dark mode and light mode each need separate checks. A background that looks dark on screen may not be dark enough for white text to pass; use the checker to confirm. The same applies to hover and focus states: if the text or background color changes on interaction, test that state as well so accessible color contrast is maintained throughout the experience.
Frequently Asked Questions
What is an accessibility contrast checker?
An accessibility contrast checker is a tool that calculates the contrast ratio between two colors (e.g. text and background) and indicates whether the pair meets WCAG AA or AAA. It helps you choose readable, accessible color contrast.
What contrast ratio is required for WCAG AA?
For WCAG AA, normal text needs at least 4.5:1 against the background. Large text (18pt or 14pt bold) needs at least 3:1.
What is the difference between AA and AAA?
AA is the standard level; AAA is stricter. For normal text, AAA requires 7:1 (AA requires 4.5:1). For large text, AAA requires 4.5:1 (AA requires 3:1).
Can I use this contrast checker for commercial projects?
Yes. The tool is free for personal and commercial use. Ratios are computed from standard WCAG formulas; use the results in design files and documentation as needed.
Does contrast apply to logos and branding?
Guidelines allow exceptions for logos and some brand elements. Body text, UI text, and meaningful graphics should still meet contrast requirements. When in doubt, test text and interactive elements.
How do I test contrast for color palettes?
List the text/background pairs you will use (e.g. primary text on surface, button text on button). Enter each pair in the checker and confirm AA or AAA. Adjust colors that fail until critical pairs pass.
Related Tools
Use these color tools together for accessible design:
- Color palette generator— create harmonious palettes from a base color with multiple harmony types.
View all color tools for palette generation, contrast checking, and more.
Ad Space (728x90)