Free tool
Colour contrast checker.
Enter a text colour and a background. You get the WCAG contrast ratio, the five checks it is judged on, a preview, and the nearest colours that pass when it falls short. Nothing is sent to us.
Your colours
Type a hex code, rgb(), hsl() or a CSS colour name, or use the picker. Nothing you enter leaves your browser.
Result
4.54:1
Shown rounded down. The pass or fail below uses the unrounded value, 4.5422:1, because WCAG does not round: 4.499:1 does not meet 4.5:1.
| Check | Needs | Result |
|---|---|---|
| Normal textLevel AA, SC 1.4.3 | 4.5:1 | Passes |
| Large textLevel AA, SC 1.4.3 | 3:1 | Passes |
| User interface components and graphicsLevel AA, SC 1.4.11 | 3:1 | Passes |
| Normal textLevel AAA, SC 1.4.6 | 7:1 | Fails |
| Large textLevel AAA, SC 1.4.6 | 4.5:1 | Passes |
Preview
Normal text at 16 pixels. Most body copy is this size, so it needs 4.5:1 at Level AA.
Large text at 24 pixels (18 point)
Bold large text at 18.67 pixels (14 point)
Closest colours that pass
Same hue and saturation, lightness moved as little as possible, checked on the rounded colour. Choose one to try it.
To reach 7:1 (AAA for normal text)
- Text #595959, 7.00:1
- No background colour at all reaches 7:1 against the current text, not even black or white. Change the text colour too.
How the ratio is worked out
WCAG defines the contrast ratio as (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter colour and L2 that of the darker. The result runs from 1:1, a colour against itself, to 21:1, black on white.
Relative luminance weights the three sRGB channels by how bright each looks: L = 0.2126 R + 0.7152 G + 0.0722 B. Before the weighting, each 8-bit channel is divided by 255 and linearised: divided by 12.92 when it is at or below 0.04045, otherwise ((c + 0.055) / 1.055) raised to the power 2.4. Green carries over 70 percent of the weight, which is why a green and a red that look equally strong can score far apart.
The 0.04045 that changes nothing. WCAG 2.0 printed 0.03928 at that step. The W3C corrected it to 0.04045 in May 2021 and notes that the change has no practical effect. For colours written as hex codes the effect is exactly zero, not roughly zero: no 8-bit channel value falls between the two numbers. 10/255 is 0.0392, below both; 11/255 is 0.0431, above both. A checker that still uses 0.03928 gives the same answer to the last digit.
The thresholds
| Success criterion | What it covers | Minimum |
|---|---|---|
| 1.4.3 Contrast (Minimum), Level AA | Text and images of text | 4.5:1 |
| 1.4.3 Contrast (Minimum), Level AA | Large-scale text | 3:1 |
| 1.4.11 Non-text Contrast, Level AA | The visual information that identifies interface components and their states, and the parts of graphics needed to understand the content, against adjacent colours | 3:1 |
| 1.4.6 Contrast (Enhanced), Level AAA | Text and images of text | 7:1 |
| 1.4.6 Contrast (Enhanced), Level AAA | Large-scale text | 4.5:1 |
The Level AA rows are the ones laws point to. The Justice Department’s ADA Title II web rule adopts WCAG 2.1 Level AA, so 1.4.3 and 1.4.11 both apply; the Revised Section 508 Standards incorporate WCAG 2.0 Level AA, which has 1.4.3 but predates 1.4.11. Neither requires the Level AAA rows. Our Title II guide has the rule’s dates.
What counts as large text
WCAG defines large-scale text as at least 18 point, or 14 point bold. CSS sets 1 point at 1.333 pixels, so 18 point is 24 pixels and 14 point is 18.67 pixels (the W3C’s Understanding document rounds it to about 18.5). A 20-pixel regular heading is normal text and needs 4.5:1; the same heading in bold is large text and needs 3:1.
Size means the size as delivered, before anyone zooms. WCAG also warns that fonts with very thin strokes are harder to read at lower contrast, so treat the numbers as a floor for a light typeface, not a target.
Rounding: why 4.49 fails
The W3C’s Understanding documents for 1.4.3 and 1.4.11 say the thresholds are not rounded: 4.499:1 does not meet 4.5:1, and 2.999:1 does not meet 3:1. A tool that rounds to the nearest hundredth shows a 4.497:1 pair as 4.50 and it looks like a pass. This checker rounds the display down, judges on the unrounded value and prints four decimals, so a near miss stays visible. The default pair shows the edge: #767676 on white is 4.54:1, the lightest grey that passes on white; #777777 is 4.47:1 and fails.
What a two-colour checker cannot tell you
- Text over images, gradients and video. The contrast is against whatever sits behind each letter. Check the spot where the background comes closest to the text colour.
- Every state. Hover, focus, visited, selected and error states are each a separate pair of colours. Inactive (disabled) components are exempt from 1.4.3 and 1.4.11; a control that only looks disabled is not.
- Layering. This checker blends the transparency written into a colour value. It cannot see CSS opacity on a parent element or a blend mode. Read the computed colours in the browser’s developer tools.
- The exemptions. Text in a logo or brand name, pure decoration, text nobody can see, and incidental text in a picture with other significant content have no contrast requirement under 1.4.3.
- Colour as the only signal. A link that differs from body text only by colour is a question for 1.4.1 Use of Color, not for the ratio.
From one pair to a whole site
WebAIM’s 2026 survey of the top million home pages found low-contrast text on 83.9 percent of them, up from 79.1 percent in 2025, with an average of 34 instances a page. It was the most common failure the survey detected. One pair at a time will not find 34 of them. The free website accessibility checker tests ten of your pages with two automated engines and emails a PDF of the counts by criterion in about fifteen minutes, and contrast is one of the 55 criteria in our accessibility audit checklist.
Questions
What contrast ratio does WCAG require?
At Level AA, 4.5:1 for normal text and 3:1 for large text (Success Criterion 1.4.3), and 3:1 for the visual information that identifies interface components and their states and for the parts of graphics needed to understand the content (1.4.11, added in WCAG 2.1). At Level AAA, 7:1 for normal text and 4.5:1 for large text (1.4.6).
What size is large text?
At least 18 point, or 14 point bold. In CSS pixels that is 24 pixels regular, or about 18.67 pixels bold. A 20-pixel regular heading is not large text; a 20-pixel bold heading is.
Is 4.49:1 close enough to 4.5:1?
No. The W3C says computed ratios are not rounded before they are compared with the threshold: 4.499:1 does not meet 4.5:1, and 2.999:1 does not meet 3:1.
Does the ADA require AAA contrast?
No. The Justice Department's ADA Title II web rule adopts WCAG 2.1 Level AA, and the Revised Section 508 Standards incorporate WCAG 2.0 Level AA. Neither requires the Level AAA ratio of 7:1. Title III, which covers private businesses, has no web regulation that names a standard.
Why does another checker give me a slightly different number?
Usually rounding (two decimals, rounded up or to the nearest) or the colour being measured: a picker that samples a screenshot reads anti-aliased pixels, not the colour in the stylesheet, and WCAG says to use the colours from the browser or the stylesheet. The 0.03928 constant in WCAG 2.0 is never the cause for colours written as hex codes; it gives the same result as 0.04045.
Does this checker send my colours anywhere?
No. It runs in your browser. Nothing is sent to us; the only thing that leaves the page is a link, if you choose to copy one.
Sources
- W3C: Web Content Accessibility Guidelines 2.2, the definitions of contrast ratio, relative luminance and large scale text, and Success Criteria 1.4.3, 1.4.6 and 1.4.11.
- W3C: Understanding Success Criterion 1.4.3, Contrast (Minimum), for the rounding rule and the point-to-pixel conversion.
- W3C: Understanding Success Criterion 1.4.6, Contrast (Enhanced).
- W3C: Understanding Success Criterion 1.4.11, Non-text Contrast.
- WebAIM: The WebAIM Million, 2026 report (updated March 30, 2026).
Contrast is one criterion of 55.
A WCAG findings report tests up to 25 of your pages against WCAG 2.2 AA, criterion by criterion, with a prioritised remediation plan, reviewed by an accessibility analyst before release.