Color Contrast Checker
The contrast ratio between two colours and whether it passes WCAG AA and AAA for text and interface parts.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Color Contrast Checker and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Color Contrast Checker does
Check text and background colours against WCAG contrast rules.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Enter a text colour and a background colour as hex codes. You see the contrast ratio and whether it passes the WCAG 2 levels: AA needs 4.5 to 1 for normal text and 3 to 1 for large text, AAA needs 7 to 1 and 4.5 to 1. Good contrast helps everyone, especially people with low vision.
When to use it
Check text and background colours against WCAG contrast rules.
Tips
Aim for 4.5:1 for normal text and 3:1 for large text.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
Worked example
With the boxes at their starting values (Text colour (hex): #1f2937; Background colour (hex): #ffffff), the tool shows: AA, normal text (4.5 : 1): Pass; AA, large text (3 : 1): Pass; AAA, normal text (7 : 1): Pass; AAA, large text (4.5 : 1): Pass; Interface parts and icons (3 : 1): Pass; Contrast ratio: 14.68 : 1. Change any box to see your own numbers. The result updates as you type, and nothing leaves your browser.
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Images
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
What counts as large text?
About 24 px, or 18.7 px in bold, and above.
Which level should I aim for?
AA is the common legal and practical target for websites.
What does AA mean?
The common WCAG level for contrast.
What ratio is needed?
4.5 to 1 for normal text.
