Colour Contrast Checker
PopularCheck WCAG colour contrast ratios between foreground and background colours instantly.
Luminance: 0.0116
Luminance: 1.0000
Contrast ratio
17.06:1
Large text sample (24px bold)
Normal text sample (16px) — The quick brown fox jumps over the lazy dog.
Small text sample (12px) — This is how small body text would appear with these colour choices.
How to use
- 1
Choose your colours
Select a foreground (text) colour and a background colour using the colour pickers or by typing hex codes.
- 2
Read the contrast ratio
The contrast ratio is calculated and displayed immediately, along with pass/fail badges for each WCAG level.
- 3
Review the live preview
See how your colour combination looks on large (24px), normal (16px), and small (12px) text in the preview panel.
- 4
Adjust or swap
Use the Swap colours button to invert your selection, try a common preset, or fine-tune the hex values until all required levels pass.
Frequently asked questions
What contrast ratio do I need for WCAG AA?
What is the difference between AA and AAA?
How is relative luminance calculated?
Is my data sent to a server?
Verify whether your colour combinations meet WCAG accessibility
standards. Enter a foreground (text) colour and a background colour
using the native colour pickers or hex input fields, then see the
contrast ratio and pass/fail badges for AA Normal, AA Large, AAA Normal,
and AAA Large levels in real time. A live preview shows how large,
normal, and small text renders with your chosen colours. Swap colours
with one click or pick from common presets. Relative luminance values
are displayed for each colour. All calculations run in your browser
with no data sent to any server.