Runs in your browser · nothing uploaded

Contrast Checker for Icons

Icons are often set in light gray to look subtle, but icon-only controls like search, close and menu need to be seen to be used. Check each meaningful icon against its background. Use the checker to confirm each one reaches the 3:1 minimum for graphics.

Which icons need 3:1

WCAG 2.1 success criterion 1.4.11 applies to graphical objects that are required to understand the content or operate the interface. Icons that act as buttons, such as a hamburger menu, a close X or a trash can, need 3:1 against their background. So do status icons that convey information, like a warning triangle. Purely decorative icons that sit next to a text label repeating the same meaning are not required to meet the ratio, though making them visible still helps.

For a quick reference, #949494 on white measures about 3.03:1, roughly the lightest gray that still passes. Anything lighter needs another look.

Thin line icons and small sizes

Contrast ratios assume solid areas of color. Very thin line icons, especially at 16px, are rendered with anti-aliasing that softens edges and makes them appear lighter than their hex value. If you use outline icon sets, consider picking a color with comfortable headroom above 3:1, or use filled versions for the most important controls. Icons placed on colored buttons or toolbars should be checked against that fill, not the page.

Questions

Do all icons need to meet contrast?

No. Icons that are needed to understand or operate the page should meet 3:1. Decorative icons, or icons whose meaning is also given by an adjacent text label, are not required to. Many teams still apply 3:1 to every icon to keep things simple and consistent.

Why use the large text row for icons?

The checker's Large text AA row uses a 3:1 threshold, the same number as the non-text contrast rule in success criterion 1.4.11. So if that row passes, the icon meets the minimum for graphical objects. Ignore the normal-text rows when testing icons.

Do icons inside buttons need checking?

Yes, against the button fill. A white icon on a light brand-colored button may fail even if the button itself stands out from the page. If the icon is the only thing telling users what the button does, its contrast with the fill matters most.

Get a beautiful, accessible interface designed by VYZEON.

See UI/UX design

More ways to use the Color Contrast Checker