Home / Free tools / Images / Color Contrast Checker
Color Contrast Checker
Test two colours against WCAG AA and AAA, see the nearest colours that pass, build accessible shades from one colour and check a whole palette.
Large sample text
Normal sample text: the quick brown fox jumps over the lazy dog.
Type HEX, rgb(), hsl() or a colour name. Colours are checked in your browser and are not uploaded.
Accessible shades of one colour
Check a whole palette
Runs in your browser. Nothing you paste or choose is uploaded or stored.
What this color contrast checker does
Low-contrast text is one of the most common accessibility failures on the web. This checker compares a text colour with a background colour, shows the WCAG contrast ratio and tells you whether the pair passes the AA and AAA levels for normal text, large text and user-interface parts such as icons and input borders. When a pair fails, it offers the nearest colours that pass, so you keep the look and fix the problem.
Two extra tools sit below the checker. The shades table builds a scale from one base colour and shows which shades take white text and which take black. The palette check tests every colour in a palette against every other, so you can see which pairs are safe for text before you build a design around them.
The WCAG contrast rules
- AA, normal text: at least 4.5:1 (WCAG 2.2 success criterion 1.4.3).
- AA, large text: at least 3:1. Large means 18 point (24 px) or larger, or 14 point (about 18.7 px) bold or larger.
- AAA, normal text: at least 7:1 (criterion 1.4.6), and 4.5:1 for large text.
- User-interface parts and graphics: at least 3:1 against the colours next to them (criterion 1.4.11), for example a button border or a chart line.
- The ratio is (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminance of the lighter and darker colour. A ratio is never rounded up: 4.49:1 does not pass 4.5:1.
Worked example
Grey #767676 on white measures 4.54:1, so it just passes AA for normal text and fails AAA, which needs 7:1. The slightly lighter grey #777777 measures 4.48:1 and fails AA for body text, although it passes for large text. The checker shows both results, and for a failing pair it lists the nearest same-hue colours that reach 3:1, 4.5:1 and 7:1, for text or for the background.
How to use the results
- Fix the text colour first. Darkening text usually keeps a design closer to its original look than changing the background.
- Do not rely on colour alone to carry meaning. Add text, icons or patterns to errors, links and chart series.
- Check hover, focus, disabled and dark-mode states as well, since each is a separate pair.
- Semi-transparent colours depend on what lies behind them. The tool blends text with the background colour you give it, and places a transparent background on white.
Limits
Contrast is one of many accessibility requirements, and a passing ratio does not make a page accessible or compliant. Text over images and gradients needs checking at its worst point. This tool uses the WCAG 2.2 contrast ratio and does not use APCA or the proposed WCAG 3 method. Tools differ slightly if they round or use the older 0.03928 threshold; this one follows the WCAG 2.2 text. Suggested colours are a starting point; check them in context. Checked against W3C documents on December 4, 2026. See also the colour converter for HEX, RGB, HSL and CMYK values.
Sources and date checked
Checked on December 4, 2026. Rules and rates change, so open the source before you rely on a figure for a filing, a contract or a roadside check.
- W3C: Web Content Accessibility Guidelines (WCAG) 2.2: definition of relative luminance and contrast ratio
- Understanding Success Criterion 1.4.3: Contrast (Minimum): AA text contrast
- Understanding Success Criterion 1.4.6: Contrast (Enhanced): AAA text contrast
- Understanding Success Criterion 1.4.11: Non-text Contrast: 3:1 for user-interface components and graphics
Questions
What is a good colour contrast ratio?
For normal text, WCAG AA needs at least 4.5:1 and AAA needs 7:1. Large text needs 3:1 for AA and 4.5:1 for AAA. User-interface parts need 3:1.
What counts as large text in WCAG?
Text at least 18 point (24 px), or at least 14 point (about 18.7 px) in bold.
Why does 4.49:1 fail when the minimum is 4.5:1?
WCAG says the ratio must not be rounded. This checker truncates the displayed ratio so a failing pair never looks like a pass.
Does a passing contrast ratio make my site WCAG compliant?
No. Contrast is one requirement among many, including keyboard access, text alternatives and structure. A pass here only covers the colour pair you tested.
How do you handle transparent colours?
A transparent text colour is blended with the background. A transparent background is placed on white, so check it against the real colour behind it.
Does the checker use APCA?
No. It uses the WCAG 2.2 contrast ratio, which is what AA and AAA conformance is measured against today.
Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.