Colour contrast checker
Calculate the WCAG contrast ratio between text and background colours and check AA and AAA levels.
How to use: Colour contrast checker
- Enter the text and background colours (HEX, rgb() or hsl()) or pick them.
- Read the contrast ratio.
- Check AA and AAA for normal text, large text and components.
What it accepts and what you get
- Input
- Two colours; the background must be opaque.
- Output
- The contrast ratio and AA/AAA results with a preview.
- Where your data is processed
- Your data is processed in your browser and is not sent to our servers.
Limitations and notes
- It uses the WCAG 2.x formula; the ratio is truncated to two decimals and never rounded up.
- Actual font weight and background images are not considered.
Suggested next steps
- Available
HEX, RGB & HSL colour converter
Convert colours between HEX, RGB and HSL with a preview, transparency and a copy button for each format.
AvailableIn your browser - Available
Website accessibility checker
Review alt text, form labels, language, headings, empty links and buttons, zoom and basic contrast. Does not certify WCAG.
AvailableBrowser and server
Related tools
- Available
HEX, RGB & HSL colour converter
Convert colours between HEX, RGB and HSL with a preview, transparency and a copy button for each format.
AvailableIn your browser - Available
Website accessibility checker
Review alt text, form labels, language, headings, empty links and buttons, zoom and basic contrast. Does not certify WCAG.
AvailableBrowser and server - Available
Image color picker
Pick a colour from any image and copy its HEX, RGB and HSL values instantly, free and online.
AvailableIn your browser - Available
Discount calculator
Work out the final price, how much you save and, optionally, the tax applied to the discounted price.
AvailableIn your browser

