Color contrast

Color contrast refers to the difference in brightness and color between text (or important elements) and its background. High contrast makes content easier to see and read, especially for people with visual impairments.

Accessibility standards overview
ALT text for images
Keyboard navigation
Color contrast
PDFs

Standard scope

This standard applies to:

  • pennmedicine.org
  • All Penn Medicine websites
  • Penn Medicine mobile applications
  • All Penn Medicine digital products

Overview

When designing a color palette for accessibility in web and digital design, the most important factors are clarity, contrast, and consistency to ensure inclusivity for users with visual impairments, including color blindness and low vision. Here’s a breakdown of key considerations:

1. Color Contrast

2. Avoid Reliance on Color Alone

  • Don’t use color as the only way to convey meaning. Use icons, patterns, or text labels in addition to red/green to indicate errors or success.

3. Color Blindness Considerations

  • Use color palettes distinguishable by people with common types of color blindness (like Deuteranopia or Protanopia).

4. Semantic Color Use

  • Be consistent in how you use colors across your site.
  • Examples:
  • Red = error or warning
  • Green = success
  • Blue = link or primary action.

5. Background and Text Color Pairing

  • Avoid low-contrast light-on-light or dark-on-dark combinations.
  • Ensure text is legible over background images or gradients by adding overlays and using solid backgrounds behind text.

6. Theme Flexibility

  • Consider users who may use high-contrast modes or dark mode. Build palettes that adapt well to both light and dark themes.

Penn Medicine color standards for accessibility

The Penn Medicine digital design system has been built for compliance with WCAG AA 2.1 accessibility requirements. Adoption of the design system is the best way to ensure compliance.

The following specific standards for color contrast can also be found in the color standards section of our design standards.

Related resources

Contact

For more information about this standard, email: web-standards@pennmedicine.upenn.edu

Last updated

Date
Version
Desciption
06/11/25
1.0.0
Initial Release