100% free
Contrast checker
AA = minimum requirement. AAA = enhanced requirement. For UI components, WCAG 2.1 only has the 3:1 AA requirement.
Sample heading (24px)
Large text (24px): Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.
Normal text (16px): Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Small text (14px): Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
| Element | AA (minimum) | AAA (enhanced) |
|---|---|---|
| Normal text (< 18pt) | 4.5:1 | 7:1 |
| Large text (≥ 18pt or ≥ 14pt bold) | 3:1 | 4.5:1 |
| UI components and graphics | 3:1 | n/a |
| Focus indicators | 3:1 | n/a |
Check color contrast in three steps
- Enter the text color and the background color as HEX values (#RGB or #RRGGBB, the # is optional) or pick them with the color field.
- "Swap colors" exchanges the two fields.
- Read the ratio, e.g. 4.52:1. Below it, the tool rates three cases separately: normal text, large text, and UI components, each as AAA, AA, or "Failed".
The calculation follows WCAG 2.1 and runs in your browser while you type. The tool doesn't change anything on your website. It only tells you whether a color combination reaches the thresholds.
How to read the result
The levels build on each other. If the ratio is 5:1, for example, normal text passes AA but not AAA. Large text then even reaches AAA, because 4.5:1 is enough for it.
For UI components the tool only shows AA at 3:1, because WCAG 2.1 has no AAA level for them. This covers buttons, icons, and focus outlines, for example.
Whether your text counts as large is up to you, based on its font size. The tool can't detect that. Besides headings, check links, placeholder text, and buttons too.
What the live preview shows
The preview applies your colors to a 24-pixel heading, three paragraphs at 24, 16, and 14 pixels, and two buttons. This shows you whether a value that passes on paper is still comfortable to read in small type.
The "Dark preview" tab swaps the colors. The contrast ratio stays the same, because the formula only compares the lighter color with the darker one. Which color is text and which is background never changes the number.
Limits of the contrast checker
- It always compares exactly two solid colors. It can't rate gradients, images, or semi-transparent areas.
- The fields don't accept HEX values with an alpha channel.
- It only checks the ratio, not typeface, stroke weight, or color vision deficiencies. A passing result doesn't replace a look at the finished page.
Frequently asked questions
What is color contrast, and why does it matter?
What do the WCAG levels AA and AAA mean?
How is the contrast ratio calculated?
When does text count as large text?
What are UI components in the context of accessibility?
What can't the contrast checker test?
Is the contrast checker free, and are my colors sent anywhere?
Related tools
- Color PickerPicks and combines colors in HEX, RGB and HSL.
- Readability CheckerScores how easy a text is to read with Flesch-Kincaid and other formulas.
- SEO CheckerChecks a page for SEO problems and lists what to fix.
- Favicon GeneratorCreates every favicon size for browsers, iOS and Android from one image.
Changelog
November 20, 2026
English version, preview by WCAG sizes
- • Added this English version of the tool
- • Fixed: the live preview called 18 pixels "Large text". Under WCAG, text counts as large only from 24 pixels (18pt), or from about 18.7 pixels (14pt) in bold. The large sample text is now 24 pixels
- • The FAQ now names the limits of the tool: no gradients, images, or transparency
November 17, 2026
Guide and related tools
- • Added a guide with instructions and use cases below the tool
- • Added related tools at the end of the page
- • Clarified the changelog: colors are entered as HEX and shown as HEX, RGB, and HSL
December 8, 2025
Launch
- • Live contrast calculation under WCAG 2.1
- • Check for normal and large text
- • AA and AAA conformance display
- • Color values shown as HEX, RGB, and HSL (input as HEX only)
- • Live preview with sample text
- • Color picker for easy color selection