When a pair falls short of 3:1, 4.5:1 or 7:1, find the nearest passing colour with the hue and saturation kept and only the lightness moved.
7.53:1 — passes 4.5:1
AA body pass · AA large pass · AAA body pass · AAA large pass.
Large text, 22px bold
Body text at a normal size. If this is hard to read, the ratio above is telling you something real.
This pair already passes
At 7.53:1 it clears the 4.5:1 target. Raise the target to see how much headroom there is.
A contrast ratio is a luminance ratio, and it is a known-imperfect model of what people actually perceive — particularly for light text on mid-tone backgrounds, where a passing pair can still be hard to read. Clearing the threshold is a floor, not proof of legibility. Ratios also say nothing about text size, weight or the font itself, all of which change how readable the same pair is.
Accessible Color Pairs runs entirely on your device — nothing is uploaded.
You’re on the Free plan. Compare plans
A contrast checker tells you whether a pair passes. This answers the question you have immediately afterwards, which is what to use instead — the nearest colour that would pass, rather than a list of colours that happen to.
Only the lightness moves. Hue and saturation are left exactly as you set them, because the point is to keep the colour recognisably itself. A suggestion that reaches 4.5:1 by turning the brand blue into a brand green is not a suggestion anyone can act on, and that is precisely what makes most automated palette fixers useless in practice. Both directions are searched, so you get the nearest lighter option and the nearest darker one and can pick the one your design can carry.
An empty direction is a real answer rather than a failure. Against a mid grey, some hues cannot reach 7:1 going either way without abandoning the hue altogether, and the honest output there is nothing — not a near miss presented as a pass. Suggestions are offered for changing the foreground and for changing the background, because which one you are allowed to move is a question about your design, not about the colours.
Worth knowing about the threshold itself: the WCAG formula is a luminance ratio and a known-imperfect model of perceived contrast, particularly for light text on mid-tone backgrounds, where a technically passing pair can still be hard to read. It also says nothing about text size, weight or typeface, all of which change how legible the same pair is. Clearing the number is a floor, not proof.
So the suggestion is still your colour. A fix that reaches the target by changing the hue gives you a different colour that happens to pass, which is not usable in a brand palette — and it is why most automated contrast fixers get ignored.
Because no lightness of that hue reaches the target against that background in that direction. That is a real answer: the hue cannot carry the target there. The alternatives are to move the other colour, lower the target where the context allows it, or accept a change of hue.
4.5:1 is the AA requirement for body text and the usual default. 3:1 covers large text — 24px regular or 18.66px bold and above — and non-text UI components such as icons and input borders. 7:1 is AAA, which is a stricter target rather than a legal requirement in most contexts.
Not on its own. The WCAG formula is a luminance ratio and a known-imperfect model of perceived contrast, weakest for light text on mid-tone backgrounds. It also ignores size, weight and typeface. Passing is a floor you should clear, then look at it.
It is flattened onto the background before anything is computed, because a translucent colour's real contrast depends on what is behind it. Against a different background the result changes, which the page notes when your foreground has an alpha channel.