Skip to content

Classification

Understanding color contrast is crucial for accessible design. It involves classifying color combinations based on their contrast level, which directly impacts how easily users distinguish elements. By prioritizing high or medium contrast, designers ensure content remains legible and accessible across platforms and user groups, ultimately enhancing the user experience. We'll explore specific examples of color contrast in accessibility practices throughout this guide.

Information-Bearing Elements (4.5:1)

  • Text
  • Image of text
  • Standalone icons

Color Contrast Exceptions (3:1)

  • Large Text: 14pt/18put reg+ (or images of text)
  • UI Controls (including states, excluding disabled) For example: Check in a checkbox or down pointing carat symbol.
  • Graphical Objects

Remember

Exceptions not Exemptions from the 4.5:1 ratio requirement, not exempt from contrast requirements altogether.

Decorative & Disabled Elements

(no contrast requirement / no compliance guideline)

  • Disabled Elements
  • Background pattern / Artistic border
  • Photographs
  • Logos

Disabled Button Example

The key point here is that while there may not be a specific compliance guideline for disabled elements, it's still important to ensure they maintain adequate color contrast. Just because there isn't a contrast requirement doesn't mean these elements won't have sufficient color contrast. It's essential not to make them faint or pale-colored simply because there's no explicit requirement against it.

If visibility is the goal, it's imperative to ensure there's enough contrast for everyone to see. While there are various ways to style disabled buttons, making them overly faint, like a super pale gray, can render them extremely difficult to discern.

Why are these disabled elements still visible on the page? Although disabled, they serve a purpose, and it's crucial for users to be aware of them. Rather than hiding them entirely, they're grayed out to maintain visibility. However, this necessitates ensuring they have sufficient contrast for everyone to notice. Designing disabled elements to be visible to all while indicating their disabled status makes sense. A good user experience ensures users don't have to speculate about the page's content.

Did you know...

“The contrast ratio of 4.5:1 was chosen because it compensates for the loss in contrast sensitivity usually experienced by users with vision loss equivalent to approximately 20/40 vision. 20/40 is commonly reported as typical visual acuity of people at about age 80.” — Developers.google, now web.dev

Back to top