- Success Criterion 1.4.11
- Conformance level AA
Toggle Switch States Too Similar in Color to Tell Apart
1.4.11 — Non-text Contrast
Scenario
Setting
An online spreadsheet's toolbar
What’s wrong
Toggle switches whose on/off states differ by colors <3:1 from each other/adjacent colors.
Example
Open an online spreadsheet's toolbar and this is what you'll see: toggle switches whose on/off states differ by colors <3:1 from each other/adjacent colors.
Why it matters
Low-vision and color-blind people who need to perceive controls and meaningful graphics. On an online spreadsheet's toolbar, that means they can't perceive the control's boundary or state.
How to test
Measure a toggle switch's on-state color against its off-state color (and against the adjacent background) with a contrast checker: both need at least 3:1 distinction.
How to fix
The visual element (border, icon, indicator, state marker) must have at least 3:1 contrast against adjacent colors in every state.
Outcome
With the fix in place on an online spreadsheet's toolbar, they tell the information apart without relying on color, specifically for the “Toggle Switch States Too Similar in Color to Tell Apart” issue on an online spreadsheet's toolbar.
Who is affected
Low-vision and color-blind people who need to perceive controls and meaningful graphics.
Learn more
- Understanding Understanding document (opens in a new tab)
Related scenarios
- Focus Outline Removed With No Replacement Indicator
- Input Field Border With Contrast Too Low to See
- Checkbox or Radio Outline Too Faint When Unchecked
- Focus Indicator Present but Below the Contrast Minimum
- Icon-Only Button Glyph With Contrast Too Low to See
- Star Rating Icons Where Filled and Empty Look Too Similar