Skip to the checklist
The Focus RingWCAG · screen readers · assistive tech

Checklist › Visual

Non-Text Contrast: Icons, Borders, and Form Fields

Filed 2026-10-29

1 Why this criterion exists

WCAG 2.1 introduced Success Criterion 1.4.11 Non-text Contrast to address a gap left by earlier contrast requirements that focused almost exclusively on text. While text contrast had long been covered by 1.4.3 Contrast (Minimum), many essential visual elements—such as icons, form field borders, toggle switches, and focus indicators—were not required to meet any specific contrast threshold. This meant that people with low vision could often read the text on a page but still struggle to perceive the boundaries of input fields, recognize the state of a checkbox, or locate a custom control. The criterion ensures that these non-text elements, which are critical for understanding and operating an interface, remain visible and distinguishable.

The core idea is that visual information necessary to identify user interface components and their states, as well as graphical objects required to understand content, must have a contrast ratio of at least 3:1 against adjacent colors. This does not apply to purely decorative elements or to logos and brand names, which are exempt. The 3:1 threshold is lower than the 4.5:1 required for normal text because non-text elements are often larger and simpler in shape, making them easier to perceive at lower contrast. However, it still provides a meaningful improvement for users with moderate to severe vision impairments.

By enforcing this minimum, the criterion helps create interfaces that are not only readable but also operable for a wider range of users. It acknowledges that accessibility is not just about text but about the entire visual language of a user interface.

2 Who it protects

The primary beneficiaries of Success Criterion 1.4.11 are individuals with low vision, including those with conditions such as macular degeneration, glaucoma, diabetic retinopathy, and cataracts. These users often rely on screen magnifiers, which zoom in on portions of the screen and can make low-contrast borders or icons even harder to distinguish due to pixelation and reduced clarity. For them, a 3:1 contrast ratio can be the difference between perceiving a button's boundary and missing it entirely. People with color vision deficiencies also benefit, as they may have difficulty distinguishing between certain color pairs, and sufficient contrast helps ensure that shape and luminance differences remain apparent.

Additionally, users with age-related contrast sensitivity loss—a common consequence of aging—find low-contrast interfaces challenging even if they do not have a diagnosed vision condition. This group is large and growing, and designing for their needs improves usability for everyone. Users who employ high-contrast modes or custom stylesheets may override author colors, but the criterion still applies to the default presentation. In high-contrast mode, the operating system or browser may enforce its own contrast, but the underlying requirement ensures that the original design does not rely on subtle color differences.

It is important to note that this criterion is not about making everything high contrast; it is about ensuring that essential visual information meets a minimum threshold. Decorative elements, disabled controls, and inactive components are exempt, as they are not required for understanding or operating the interface. However, when a control becomes active or focused, its visual indicators must meet the contrast requirement.

3 How conformance is measured

Conformance to Success Criterion 1.4.11 is measured by calculating the contrast ratio between the colors of non-text elements and their adjacent background. The contrast ratio is a mathematical formula based on the relative luminance of two colors, ranging from 1:1 (no contrast) to 21:1 (maximum contrast, black on white). To meet the criterion, the ratio must be at least 3:1. This applies to user interface components—such as buttons, checkboxes, radio buttons, sliders, and text fields—and their states, including default, hover, focus, active, and disabled (though disabled elements are exempt). It also applies to graphical objects that are part of the content, such as icons that convey information, charts, and infographics.

Measuring contrast manually involves using a color picker or contrast analyzer to sample the foreground and background colors. Many browser developer tools include built-in contrast checkers that can help. For automated testing, tools like axe, WAVE, and Lighthouse can flag potential failures, but they may not catch all instances, especially when colors are defined in images or when states are dynamically generated. Therefore, manual verification is essential. When evaluating, consider the actual rendered colors, not just the CSS values, as opacity, gradients, and background images can affect the final contrast.

It is also important to test with different zoom levels and in high-contrast mode to ensure that the contrast remains sufficient. The criterion does not require that all non-text elements meet 3:1, only those that are necessary for understanding or operating the content. Decorative images, logos, and inactive controls are exempt, but determining what is essential often requires careful judgment.

4 Where teams usually slip

One of the most common pitfalls is focusing solely on text contrast and neglecting non-text elements. Teams often ensure that body text meets 4.5:1 but overlook the borders of form fields, which may be a light gray on a white background, resulting in a contrast ratio well below 3:1. This makes it difficult for users with low vision to locate where to type. Similarly, custom checkboxes and radio buttons often use subtle color differences to indicate state, such as a light gray checkmark on a slightly darker gray background, failing the criterion. Another frequent issue is focus indicators: many designers remove the default outline and replace it with a custom style that lacks sufficient contrast, making keyboard navigation challenging for users who rely on visible focus.

Icons that convey meaning, such as a trash can for delete or a magnifying glass for search, are sometimes designed with low-contrast colors that blend into the background. This is especially problematic when icons are the only label for a control. Teams may also forget to test hover and active states, which can have different colors that fail the contrast requirement. In data visualizations, lines and bars may use colors that are too similar to the background or to each other, making the chart unreadable for users with low vision or color vision deficiencies. Finally, teams often assume that if an element is large enough, contrast is less important, but size does not exempt an element from the criterion.

Another subtle slip is relying on color alone to convey information, such as using a red border to indicate an error. While color can be used, it must be accompanied by another visual indicator, such as an icon or text, and the color itself must meet contrast requirements. These oversights can create barriers that are invisible to sighted designers but significant for users with visual impairments.

5 Fixing it in your markup

To meet Success Criterion 1.4.11, start by auditing all non-text elements that are essential for understanding or operating the interface. This includes form controls, buttons, links (when they are not text), icons, and graphical objects. For each, ensure that the foreground color (the element itself) and the background color (adjacent area) have a contrast ratio of at least 3:1. In CSS, you can define colors using hexadecimal, RGB, or HSL values, and use a contrast checker to verify. For borders, consider increasing the border width or using a darker color. For icons, choose colors that stand out against the background; if the icon is on a colored background, ensure the icon color contrasts with that background.

When designing focus indicators, use a solid outline with a contrasting color, and ensure it is at least 2 pixels thick for visibility. Avoid removing outlines entirely; instead, style them to meet contrast requirements. For custom checkboxes and radio buttons, use a high-contrast checkmark or dot, and ensure the border of the control meets 3:1 against the background. If you use SVG icons, you can set the fill and stroke colors directly. For charts and graphs, use distinct colors with sufficient contrast, and consider adding patterns or labels to differentiate data series.

In your markup, you can also use CSS custom properties to manage colors consistently and make it easier to adjust for contrast. Remember that states like hover and focus may require different colors; test each state. If you use images for icons, ensure the image itself has sufficient contrast, or use CSS filters to adjust. Finally, document your color choices and contrast ratios in a style guide to maintain consistency across the project.

6 Testing before you ship

Testing for non-text contrast should be integrated into your development and quality assurance processes. Start with automated tools: browser extensions like axe DevTools, WAVE, and Lighthouse can scan a page and flag elements that fail contrast requirements. These tools are useful for catching obvious issues, but they have limitations. They may not detect contrast problems in images, canvas elements, or dynamically generated content. They also may not evaluate all states, such as hover or focus, unless you interact with the page. Therefore, manual testing is crucial. Use a color contrast analyzer to sample colors from screenshots or directly in the browser. Many tools allow you to pick colors from the screen and calculate the ratio instantly.

When testing manually, navigate through the interface using only a keyboard to check focus indicators. Ensure that the focus ring is visible and meets 3:1 against the background. Test form fields by zooming in to 200% or more; borders should remain distinguishable. Check all interactive states: default, hover, focus, active, and disabled (though disabled is exempt, it should still be perceivable). For icons and graphics, verify that they are understandable without color alone and that their contrast is sufficient. Consider testing with a screen magnifier or in high-contrast mode to simulate the experience of users with low vision.

It is also helpful to involve users with disabilities in testing, as they can provide insights that automated tools miss. However, even without user testing, a thorough manual review can catch most issues. Document your testing methodology and results, and retest after any design changes. Remember that contrast is not a one-time fix; it should be maintained as the design evolves.

7 Frequently asked questions

Does non-text contrast apply to disabled controls? No, disabled controls are exempt from Success Criterion 1.4.11 because they are not operable. However, they should still be distinguishable from enabled controls, and it is good practice to ensure they are perceivable, even if not required. What about logos and brand names? Logos and brand names are exempt from contrast requirements, as they are considered essential to the identity of the site and are often protected by trademark. However, if a logo is used as a functional element, such as a link to the home page, the link itself must still be identifiable, but the logo's colors are not subject to the 3:1 rule.

Do I need to meet 3:1 for every icon on my page? Only for icons that convey information necessary to understand the content or operate the interface. Decorative icons do not need to meet the requirement. If an icon is the only label for a button, it is essential and must meet contrast. If an icon is accompanied by text that conveys the same meaning, the icon may be considered decorative. How do I test contrast for elements with gradients or background images? You need to check the contrast at the point where the element meets the background. If the background varies, ensure that the contrast is sufficient across the entire area. This may require adjusting the element's color or adding a solid background behind it. Can I use opacity to achieve contrast? Opacity can reduce contrast, so you must calculate the effective color after blending with the background. It is often simpler to use solid colors. Finally, does this criterion apply to mobile apps? Yes, WCAG applies to web content and can be applied to mobile web and native apps, though native apps may have platform-specific guidelines. The principle remains the same: ensure non-text elements are perceivable.