Color Contrast Checker: WCAG AA and AAA, Private
Check text and background colours against WCAG AA and AAA.
Text people can read needs enough difference in brightness from what is behind it. WCAG 2, the accessibility standard most laws point to, measures that difference as a contrast ratio from 1:1 (the same colour) to 21:1 (black on white). Normal text needs 4.5:1 for AA and 7:1 for AAA; large text (24px, or 18.66px bold, and up) needs 3:1 and 4.5:1; the parts of an interface that must be seen, such as the edge of a field or an icon, need 3:1. Type or paste any CSS colour (hex, rgb(), hsl(), oklch() or a name) or pick one, and the ratio and the five checks change as you go. For a level not reached it offers the nearest colour that reaches it, with the same hue, only lighter or darker; Options says whether to change the text or the background. See-through colours are laid over the background first, as the browser shows them. The ratio is cut to two decimals, never rounded up, so 4.499 reads 4.49 and fails. This is WCAG 2.x only: the newer APCA method has its own licence terms and is not part of any standard yet. Contrast is one part of accessibility; it cannot say whether a font is too thin or too small. Everything is worked out on this device.
How to use Colour contrast checker
- Type or paste the Text colour and the Background colour, or pick them.
- Read the contrast ratio and the five WCAG 2 checks for normal text, large text and interface parts.
- Use a suggested colour that passes, or press Copy result to copy the ratio and the checks.
Colour contrast checker: common questions
Are my colours sent anywhere when I check contrast?
No. The colour contrast checker works out every ratio in your browser, on your device, and sends nothing anywhere, so colours not yet published stay private. It works offline too.
What contrast ratio does WCAG AA require?
WCAG 2 AA needs 4.5:1 for normal text and 3:1 for large text (24px, or 18.66px bold, and up); AAA needs 7:1 and 4.5:1. Interface parts such as icons and the edges of fields need 3:1. The contrast checker tests all five.
Does the contrast checker use APCA?
No. The contrast checker uses WCAG 2.x only; APCA, proposed for a future WCAG 3, is not part of any standard yet. Ratios are cut to two decimals, never rounded up, so 4.499:1 fails 4.5:1.
Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.