Contrast Checker: Test Colour Contrast Against WCAG
Insufficient contrast is one of the most common barriers on the web. With the contrast checker in the SiteCockpit dashboard, you can test any colour combination in seconds: you see the contrast ratio and whether the requirements for level AA and AAA are met.
How to Test Contrast With SiteCockpit
Choose the background colour and the text or icon colour, either with the colour picker or as a colour code. The contrast checker calculates the contrast ratio and shows whether the combination meets the WCAG requirements for regular text, large text and icons or UI elements. A preview shows sample text and icons in your colours.
-
Enter colours as HEX, RGB or HSL or pick them with the colour picker
-
Contrast ratio as a number, for example 4.5:1
-
Assessment for regular text, large text and UI elements
-
Preview with sample text in regular and large size
Which Contrast Ratios WCAG Requires
The minimum values are set out in success criteria 1.4.3, 1.4.6 and 1.4.11 of WCAG 2.2. For websites covered by the European Accessibility Act or German public sector law, level AA applies.
Normal text
Body text, links, labels and notes
Large text
From 18 pt or 14 pt bold, such as headings
Controls and graphics
Input borders, icons, focus indicators
Exceptions include logos, purely decorative text and inactive controls. The AAA values are set out in criterion 1.4.6.
Typical Contrast Errors on Websites
We find these errors particularly often in audits. With the contrast checker, you can test the right alternative before you change colours in the design or CSS.
Light grey text
Light grey on white looks modern, but often does not reach the required ratio of 4.5:1 for normal text.
Text on images
Text on photos or gradients is readable to different degrees depending on the image area. Check the lightest and darkest spot.
Form fields and placeholders
Pale borders and placeholder text are hard to see for people with low vision.
Information conveyed by colour only
Links or error messages that stand out only by colour violate criterion 1.4.1, even if the contrast is sufficient.
Who the Contrast Checker Is For
Contrast issues arise at many points in the process. That is why testing pays off for everyone who works on your website.
Design
Check colour palettes, buttons and states such as hover and focus before the design goes into development.
Accessible designDevelopment
Test colour values while you build and fix contrast errors that easyMonitoring finds on your pages.
Discover easyMonitoringEditorial and marketing
Check banners, campaign colours and text on images before new content goes live.
More about WCAG 2.2Examples: Colour Combinations Tested
Even small differences in shade decide whether a text meets the requirements. All values are calculated with the WCAG formula for normal text on a white background.
#FFD700 on white: 1.40:1
Golden yellow on white is barely readable and fails by far. Yellow only works on a dark background.
Check now →#777777 on white: 4.48:1
A medium grey just misses level AA. Borderline cases like this cannot be spotted without measuring.
Check now →#767676 on white: 4.54:1
One shade darker, the same grey meets level AA for normal text.
More about WCAG 2.2 →#595959 on white: 7.00:1
This dark grey reaches level AAA for normal text, the highest level.
More about WCAG 2.2 →Contrast Is More Than Text Colour
Many people think of contrast only in terms of text. WCAG, however, also sets requirements for UI components, graphics and the use of colour. These are the areas most often overlooked in practice.
-
Borders of input fields and buttons need 3:1 (1.4.11)
-
Icons and informative graphics also need 3:1
-
The focus indicator must stand out clearly
-
Colour must not be the only means, e.g. for error messages (1.4.1)
-
Text on images needs a calm, high-contrast background
-
Also check hover and focus states
Frequently Asked Questions About the Contrast Checker
It calculates the contrast ratio between a background colour and a text or icon colour and shows whether the WCAG requirements for regular text, large text and icons or UI elements are met at level AA and AAA.
Questions about contrast and accessibility?
We show you how to find, fix and permanently avoid contrast errors.