Overview
Contrast Ratio is a small web tool, created by Lea Verou, for checking whether text is readable against its background. You enter two colours and it works out the contrast ratio between them using the formula from the Web Content Accessibility Guidelines (WCAG). The contrast-ratio.com address now forwards to a page on the Siege Media website, where the same tool is hosted.
There are two fields, one for the background and one for the text colour, and a button to swap them. Colours can be typed in any CSS format the browser understands, including functional notation, and the arrow keys nudge numeric values up and down. The ratio updates as you type and is shown in a circle that turns green for a good result and red for a poor one; hovering over it gives more detail. A sample block shows normal, italic and bold text in your chosen colours.
The page explains the usual targets: 4.5:1 for small text, with 3:1 acceptable for larger text. If the background is semi-transparent the tool reports the ratio with an error margin, because the real result depends on what is behind it.
Categories
Features
- Calculates the WCAG contrast ratio between a text colour and a background colour
- Accepts CSS colour formats including functional notation
- Result updates as you type
- Arrow keys adjust numeric colour values, with modifier keys for bigger or smaller steps
- Swap button to reverse text and background
- Sample text preview in normal, italic and bold styles
- Error margin shown for semi-transparent backgrounds
Privacy
See the official privacy policy. The tool only needs two colour values and asks for no personal details; the hosting page loads Google Tag Manager, Microsoft Clarity and a Facebook script.
Pros & Cons
Pros
- Very fast: two fields and an instant answer
- Nothing to install and no account
- Handles semi-transparent colours, which many checkers ignore
- Links to the relevant WCAG success criterion
Cons
- Checks one pair of colours at a time
- No colour picker or suggestions for a passing alternative
- Now sits inside a marketing agency's website rather than on its own domain
- Does not scan a whole page or design for contrast problems
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Contrast Checkers · WebAIM Color Contrast Checker
Checks whether colors meet accessibility contrast standards.
Free No Signup Web API