1.4.11 - Non-text contrast
Benefits users with:
- colour blindness
- low vision
Intent
The intent of this success criterion is to ensure that active user interface components (i.e., controls) and meaningful graphics are distinguishable by people with moderately low vision. The requirements and rationale are similar to those for large text in 1.4.3. - Contrast (minimum).
Low contrast controls are more difficult to perceive, and may be completely missed by people with a visual impairment. Similarly, if a graphic is needed to understand the content or functionality of the webpage then it should be perceivable by people with low vision or other impairments without the need for contrast-enhancing assistive technology.
Active user interface components
For active controls any visual information provided that is necessary for a user to identify that a control is present and how to operate it must have a minimum 3:1 contrast ratio with the adjacent colors. Also, any visual information necessary to indicate state, such as whether a component is selected or focused must also ensure that the information used to identify the control in that state has a minimum 3:1 contrast ratio.
This success criterion does not require that changes in color that differentiate between states of an individual component meet the 3:1 contrast ratio when they do not appear next to each other. For example, there is not a new requirement that visited links contrast with the default color, or that mouse hover indicators contrast with the default state. However, the component must not lose contrast with the adjacent colors, and non-text indicators such as the check in a checkbox, or an arrow graphic indicating a menu is selected or open must have sufficient contrast to the adjacent colors.
Ways to meet the criterion
The visual presentation of the following should have a contrast ratio of at least 3:1 against adjacent color(s):
- User interface components: Visual information used to indicate states and boundaries of user interface components, except for inactive components or where the appearance of the component is determined by the user agent and not modified by the author;
- Graphical objects: Parts of graphics required to understand the content, except when a particular presentation of graphics is essential to the information being conveyed
This is for differentiating graphical objects (such as icons and components of charts or graphs) and author-customized interface components (such as buttons, form controls, and focus indicators/outlines).
Examples
Informative icons and illustrations
Success
Colours of the informative icons pass 3:1 contrast ratio against their background.
Failure
Colours of the informative icons do not pass 3:1 contrast ratio against their background.
Customized input field
Success
Input outline’s contrast pass 3:1 contrast ratio against its background.
Failure
Input outline’s contrast does not pass 3:1 contrast ratio against its background.
Customized states of the active user interface components
Default state:
Focused state:
Success
Focus indicator with thick borders passes 3:1 contrast ratio against the adjacent colour.
Grey focus indicator does not pass 3:1 contrast ratio against the adjacent colour but the visible cursor with sufficient contrast is provided when the input receives focus.
Failure
Focus indicator’s contrast does not pass 3:1 contrast ratio against the adjacent colour.
This example has the sufficient contrast against its background; however, it fails the 1.4.1 Use of color criterion due to relying on blue and black hues. The same border width is used and the colour does not pass 3:1 contrast ratio against the default state.
Selected state of customized checkbox and radio button (including rating component)
Default state:
Selected states:
Success
Adjacent colours pass 3:1 contrast ratio.
Using thick border to differentiate the states also work instead of relying on colour.
Failure
Adjacent colors do not pass 3:1 contrast ratio.
This example has low color contrast against its background.
- This example fails the 1.4.1 Use of color criterion due to relying on yellow and white hues.
- The same border width is used and the fill colour does not pass 3:1 contrast ratio against the default state.
Boundaries of the button with visible text
Not applicable
Success
Light grey visual boundary of the button (active control) does not pass the 3:1 contrast ratio against its background colour. However, the text inside the button is visible and it meets 1.4.3. Contrast (minimum) then the success criterion is passed.
Pie charts
Success
Adjacent colours (each slice of chart and background) pass 3:1 contrast ratio.
Darker borders are added around slices of the pie chart with sufficient contrast ratio against each slice of the pie chart’s colours and the background colour.
The pie chart has visible labels and values that convey equivalent information to the graphical objects (the pie slices).
Failure
Adjacent colours (each slice of chart and background) fail 3:1 contrast ratio.
Map icons
Success
- Icons and background have sufficient contrast (more than a 3:1 contrast ratio).
- Darker borders are added around the icons with the light-coloured background to distinguish the light-coloured informative area on the map.
Failure
- Adjacent colours (each icon and background) fail the 3:1 contrast ratio.
- Icons with light-coloured backgrounds look merged into the map's area. Some colour-blind users may think the icon's background area is the map's specific informative area.
- This will not be a failure if the icon’s shape is clearly visible and the map’s coloured area’s information is not important. However, having clear boundaries helps users to find the information easily.
This example fails the "1.4.1 Use of color" criterion due to relying on colour hues (light-green, dark-green, yellow).
Testing principles
- Identify each user-interface component (link, button, form control) on the page and:
- Identify the visual (non-text) indicators of the component that are required to identify that a control exists, and indicate the current state. In the default (on page load) state, test the contrast ratio against the adjacent colors.
- Test those contrast indicators in each state.
- Identify each graphic on the page that includes information required for understanding the content (i.e. excluding graphics which have visible text for the same information, or are decorative) and:
- Check the contrast of the graphical object against its adjacent colors;
- If there are multiple colors and/or a gradient, choose the least contrasting area to test;
- If it passes, move to the next graphical object;
- If the least-contrasting area is less than 3:1, assume that area is invisible, is the graphical object still understandable?
- If there is enough of the graphical object to understand, it passes, else fail.
- The techniques below each have testing criteria, and the related criteria for Focus visible (2.4.7), Use of color (1.4.1), and Contrast minimum also have techniques.