WCAG 1.4.11: Non-text Contrast
Non-text Contrast is a Success Criterion under WCAG 2.1, introduced to address the accessibility of visual elements beyond just text. It mandates that the visual presentation of user interface components (like buttons, input fields, and checkboxes) and graphical objects (like icons and parts of charts) has a contrast ratio of at least 3:1 against adjacent colors.
This criterion expands on the importance of contrast, moving beyond the text-focused requirements of WCAG 2.0. It aims to make interactive elements and critical visual information discernible for a wider range of users, ensuring that all users can perceive and interact with key parts of a website or application.
Why Non-text Contrast Matters
Adequate contrast for non-textual elements is crucial for many users, significantly impacting their ability to perceive, understand, and interact with web content:
Without sufficient contrast, users may:
Success Criterion 1.4.11 Requirements
The core requirement of WCAG 1.4.11 is straightforward: the visual presentation of user interface components and graphical objects must have a contrast ratio of at least 3:1 against adjacent colors.
Key Definitions:
Exceptions to the 3:1 Contrast Rule:
There are specific situations where the 3:1 contrast ratio is not required:
Practical Guidelines for Compliance
Achieving compliance with WCAG 1.4.11 involves careful design and development practices:
Examples
Buttons
Buttons require clear visual distinction from their surroundings, whether through their background color or a defined border.
Correct Implementation (Button with sufficient contrast)
This button’s background provides sufficient contrast against a white page background. Its focus indicator also has strong contrast.
Incorrect Implementation (Button with insufficient contrast)
This button has a background color that does not provide enough contrast against a white page background, making it hard to perceive its boundaries.
Form Input Fields
Input fields need clearly defined boundaries to indicate where users can type.
Correct Implementation (Input field with sufficient border contrast)
The input field’s border has a strong contrast against the white background, clearly indicating its interactive area and providing a visible focus state.
Incorrect Implementation (Input field with insufficient border contrast)
The input field’s border is too light, making it difficult to discern its boundaries from the white page background. Reliance solely on a placeholder for a visual cue is not sufficient.
Icons
Icons that convey meaning are graphical objects and must meet the contrast requirements.
Correct Implementation (Search icon with sufficient contrast)
The magnifying glass icon has a dark color that provides good contrast against the light background, making it easily discernible. Note the use of aria-hidden and a visually hidden span for screen reader users.
Incorrect Implementation (Search icon with insufficient contrast)
The magnifying glass icon is a light gray, which offers poor contrast against a white background, making it hard to identify or understand its function.
Best Practices and Common Pitfalls
Best Practices:
Common Pitfalls:
By adhering to WCAG 1.4.11, you significantly enhance the usability and accessibility of your website or application for a diverse user base, ensuring that crucial interactive and informational elements are perceivable by everyone.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat