Skip to content
Design systems and accessibilityguide

How to measure the contrast of an actionable icon

By SkeuDesign Editorial Team1 min read

Answer in brief

Identify the part of the graphic needed to recognize the control, then compare it with the adjacent colors. WCAG's non-text contrast criterion generally calls for 3:1 for required visual information, subject to its exceptions.

Measure the outline that carries meaning

A pale gear sits on a white settings button. Sample the main gear shape and its immediate background. If the outline supplies the only recognizable shape, darken it and repeat the measurement in each available theme.

Measure the hardest background in the component

A translucent icon placed over a gradient can have different contrast at opposite ends of the same stroke. Capture the actual composite in the light and dark themes and sample where the necessary shape comes closest to its background. A single measurement against the page's base color may miss that point.

Sources

  1. [1] Understanding Success Criterion 1.4.11: Non-text Contrast | WAI | W3C — W3C, accessed November 23, 2026

Frequently asked questions

Must every decorative highlight reach 3:1?

Evaluate the parts required to identify the control or state. A glint on an already recognizable gear can be decorative.