Contrast Checker
Check text and background colours against WCAG 2.2 contrast levels, and get the nearest colour that passes.
Runs in your browser. Nothing leaves this device.
How to use Contrast Checker
- 1Enter a text colour and a background colour in any CSS format, or use the pickers.
- 2Read the ratio and the pass or fail for normal text, large text and interface parts.
- 3If it fails, use the suggested colour, which keeps the hue and changes only the lightness.
Questions
What counts as large text?
24px and up, or 18.66px and up when bold. Large text needs 3:1 for AA and 4.5:1 for AAA.
What are interface parts?
Icons, input borders, focus rings and other non-text parts you need to see to use the page. They need 3:1 against what is next to them.
How is the suggestion made?
It keeps the hue and saturation of the text colour and moves its lightness up or down until the ratio passes, picking the smallest change.
Is anything sent anywhere?
No. Everything is worked out in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DesignColour ConverterConvert a colour between HEX, RGB, HSL, HSV, HWB, OKLCH and CMYK, and check its contrast against white and black.
- DesignColour Blindness SimulatorSee an image the way people with red, green or blue colour blindness see it, and save the result.
- DesignColour Picker from ImageClick anywhere on an image to get the exact colour as HEX, RGB and HSL, and see its main colours.
- DesignAspect Ratio CalculatorFind the aspect ratio of any width and height, resize to a new width or height at the same ratio, and see megapixels and common sizes.
- DesignBackground & Wallpaper GeneratorMake mesh gradients, grain textures and dot, grid, wave or stripe patterns at any size, then download a PNG or copy the CSS.
- DesignBorder Radius GeneratorRound each corner of a box in pixels or percent, see the shape change and copy the shortest CSS.