Skip to main content
Home
Back to Guidelines

What is Non-text Contrast?

UI components and icons need 3:1 contrast against adjacent colors.

UI components and icons need 3:1 contrast against adjacent colors.

  • Keyboard and screen reader users.
  • People who need predictable interactions.
  • Users who benefit from visible focus and clear labels.

Good vs Bad Examples

Use the tabs to compare the accessible pattern with the example to avoid.

Good Example

Primary and secondary buttons with clear, contrasting borders.
html live code
<div />
Why this is correct (developer logic):
  • Provides an accessible and predictable interaction.
  • Works better for keyboard and assistive technology users.
  • Matches the intended WCAG requirement for this page.

Implementation Checklist

Progress0 / 5 completed (0%)

Knowledge Check

Answer Yes or No to test your understanding of non-text contrast.

Score: 0 / 3 · Answered: 0 / 3

Does the good example demonstrate non-text contrast correctly?

Is the bad example acceptable for non-text contrast?

Should this pattern be checked with keyboard and screen reader testing?