WCAG Color Contrast Checker
Pick a text color and a background color to see the contrast ratio and accessibility results instantly.
Your text and files never leave your browser — nothing is sent to a server.
- Normal text AA (4.5:1)-
- Normal text AAA (7:1)-
- Large text AA (3:1)-
- Large text AAA (4.5:1)-
- UI components & graphics AA (3:1)-
Large text means at least 24px, or about 18.7px when bold.
This is how a large heading looks
Body text needs at least 4.5:1 to be comfortable to read. Try it on a small screen or in bright light, too.
Small helper text · 13px
How to use
- Choose a text color and a background color with the color boxes, or type codes such as #fff or rgb(…). Semi-transparent colors are blended over the background first.
- You get the contrast ratio and pass/fail results for AA normal text (4.5:1), large text (3:1) and UI components (3:1), plus the stricter AAA levels.
- If a check fails, “Suggested passing colors” shows the closest color with the same hue and only the lightness changed. Click “Apply” to use it.
- Both colors are saved in the page URL, so you can copy the link to share with your team.
FAQ
What do AA and AAA mean?
They are conformance levels in the Web Content Accessibility Guidelines (WCAG). Normal text needs 4.5:1 for AA and 7:1 for AAA. AA is the level most laws and policies refer to, including ADA and Section 508 guidance in the US.
How is the contrast ratio calculated?
The tool finds the relative luminance of both colors and divides (lighter + 0.05) by (darker + 0.05). Identical colors give 1:1 and black on white gives 21:1. The ratio is truncated, not rounded, so a value just below a threshold never looks like a pass.
When does the UI components rule apply?
Non-text elements such as button borders, input outlines and icons need at least 3:1 against the colors next to them (WCAG 1.4.11).
Related tools
All tools
Unit Converters
- Unit Converter
- Temperature Converter
- Weight Converter
- Area Converter
- Length Converter
- Angle Converter
- Calorie Converter
- Data Size Converter
- Dry Volume Converter
- Electric Charge Converter
- Energy Converter
- Flow Rate Converter
- Force Converter
- Fuel Economy Converter
- Luminous Intensity Converter
- Magnetomotive Force Converter
- Power Converter
- Pressure Converter
- Radiation Dose Converter
- Speed Converter
- Time Unit Converter
- Volume Converter