Contrast Checker
Check WCAG and APCA color contrast for accessible text and UI colors.
Updated
What is the Contrast Checker?
Contrast Checker helps you quickly test whether two colors are readable together and accessible for real UI use.
Use it to check text, icons, buttons, and interface elements against WCAG contrast guidelines. It shows the contrast ratio, accessibility pass/fail status, and a live preview so you can see the result immediately.
This tool is especially useful when:
- Choosing text colors for cards, buttons, labels, and dashboards.
- Reviewing design system tokens before shipping.
- Comparing an existing brand color against a background color.
- Checking whether a combination works for normal text, large text, or UI controls.
It supports modern accessibility workflows by combining WCAG-style contrast checks with APCA-oriented guidance, so you get both familiar compliance checks and a more perceptual contrast view.
How it works
Contrast is measured by comparing the foreground color against the background color.
- Enter a foreground color.
- Enter a background color.
- The tool calculates the contrast result instantly.
- Review the WCAG ratio, APCA score, and pass/fail indicators.
- Use the live preview to judge readability in context.
The tool is designed for quick decisions during design and frontend development. WCAG contrast ratios are commonly used to verify readability, while APCA provides a newer perceptual contrast signal that can help with more nuanced visual decisions.
Typical accessibility thresholds include:
- WCAG AA: 4.5:1 for normal text.
- WCAG AA: 3:1 for large text.
- WCAG AAA: 7:1 for normal text.
- WCAG AAA: 4.5:1 for large text.
If the colors fail, adjust either the foreground or background until the preview and scores reach a readable level.
Examples
Check text contrast
Test whether your foreground and background colors meet accessibility thresholds.
Find a safer text color
Compare color pairs and identify a more readable combination quickly.
Frequently asked questions
What is the best color contrast checker tool?
What is the best color contrast checker tool?
The best tool is one that is fast, accurate, and useful in your real workflow. A strong contrast checker should show WCAG ratios, APCA guidance, live previews, and clear pass/fail feedback so you can fix issues quickly.
How to use contrast checker?
How to use contrast checker?
Enter the foreground color and background color, then review the contrast ratio and accessibility results. If the score is too low, adjust one of the colors until the combination becomes readable and passes the target guideline.
What contrast ratio should I aim for?
What contrast ratio should I aim for?
For normal text, aim for at least 4.5:1. For large text, 3:1 is usually the minimum WCAG AA target. If you want a stricter standard, use AAA thresholds.
Does this tool check APCA too?
Does this tool check APCA too?
Yes, the tool can also show an APCA-style contrast value. That helps when you want a more perceptual reading beyond the traditional WCAG ratio.
Can I use this for buttons and UI elements?
Can I use this for buttons and UI elements?
Yes. It is useful for button labels, icons, form labels, badges, and other interface elements that need enough contrast to stay readable.
Why does a color pair sometimes fail even if it looks okay?
Why does a color pair sometimes fail even if it looks okay?
Human perception can be misleading, especially with low-saturation colors or subtle tone differences. Contrast checks help catch combinations that look acceptable at a glance but are still hard to read in practice.
What is the difference between WCAG and APCA?
What is the difference between WCAG and APCA?
WCAG uses a ratio-based contrast model that is widely recognized for accessibility compliance. APCA is a newer perceptual model designed to better reflect how people actually read text on screens.
Should I test text color or background color first?
Should I test text color or background color first?
Start with the color that is harder to change in your design system, then adjust the other one around it. In practice, teams often keep the brand background and refine the text color for readability.
Related tools
More utilities you might find handy.
CMYK to RGB
Convert CMYK print colors to RGB values instantly with live preview, hex output, and copy-ready results.
Color Blindness Simulator
Preview how images and designs appear to people with protanopia, deuteranopia, tritanopia, and other color vision deficiencies
Color Escape Code Generator
Generate ANSI terminal color escape codes for styles, foregrounds, and backgrounds across bash, python, javascript, and more.