
Test text and button colours against WCAG AA and AAA, read the ratio, and find a darker shade that passes without a redesign.
An accessibility audit comes back with two lines you did not expect: the white label on your orange call-to-action button is hard to read, and the gray caption under every product card is too faint. Both looked fine on your monitor. Contrast Checker turns "looks fine" into a ratio you can compare with the WCAG thresholds.
Type or pick a text colour and a background colour, and the tool shows the contrast ratio, pass or fail marks for AA and AAA, and a live preview line in those colours.
Take a brand orange of #F26B3A with white text on a button. Enter #FFFFFF as the Text Color and #F26B3A as the Background Color. The tool shows a ratio of 3.02:1. For normal text, AA needs 4.5:1, so it fails. For large text, AA needs 3:1, so it squeaks by. A 16-pixel label on a button is not large text, so this is a fail in practice.
Now the caption: #6B7280 text on a #F3F4F6 card. The ratio is 4.39:1, just under 4.5:1. On a pure white background the same gray scores 4.83:1 and would pass, which shows how a slightly tinted card can flip the result. The tool floors the figure rather than rounding it, so a 4.499 never appears as 4.50 beside a fail mark.
A third check is placeholder text. #999999 on white gives 2.84:1, which fails both normal and large text. If your form placeholder is that gray, it is the kind of thing audits catch.
When a pair falls short of 4.5:1, the tool offers a button reading "Use #xxxxxx (passes AA)". It darkens the text colour on a light background, or lightens it on a dark one, until the ratio reaches 4.5:1. That is useful for text on a fixed background.
For the orange button you would rather keep the white label and darken the background. Try #C2410C: white on it scores 5.17:1 and passes AA for normal text. It is a deeper burnt orange, still clearly on-brand, and no longer relies on large text rules. A shade in between, #D9531E, scores only 4.03:1 and still fails, which is a useful reminder that a small step toward the original colour is often not enough. Keep darkening until the AA badge turns green, then record the hex value in your design tokens.
Gray captions are easier. #6B7280 on white is 4.83:1, so either move the caption off the tinted card or darken it to #4B5563, which scores 7.55:1 on white and 6.86:1 on the tinted card, enough for AAA on normal text in both places. Check each combination you plan to ship, not just the first.
WCAG treats text as large when it is at least 18 point regular or 14 point bold. On screen that is roughly 24 pixels, or about 18.66 pixels in bold. The tool does not measure your text, so you decide which column applies. When in doubt, use the normal text column. A button label at 16 pixels, bold or not, belongs in the stricter column.
Write down both colours and the ratio next to each component in your style guide, for example "Button label, white on #C2410C, 5.17:1, AA pass". A reviewer can then repeat the check in seconds. If you are still choosing colours, Color Palette helps you generate a set to test, and the design tools category has gradient and shadow helpers for the next step. Contrast Checker runs in your browser, and each check counts toward your 10 trial usages a day, so test the pairs that matter most first.
This tool reports mathematical contrast ratios against published WCAG thresholds. It is not a certification and does not replace testing with real users.
Which pair is hardest to fix on your site, body text on tinted cards or labels on brand-coloured buttons? Tell us on the contact page.