Colors

Color Accessibility

Contrast ratios and WCAG compliance guidelines

Production

All Ontopix color combinations are designed to meet WCAG 2.1 AA contrast requirements.

Contrast Requirements

Element TypeMinimum RatioExample
Normal text (< 18pt)4.5:1Body text, labels
Large text (≥ 18pt or 14pt bold)3:1Headings, titles
Interactive elements3:1Buttons, links
Non-text elements3:1Icons, borders

Light Mode

BackgroundTextRatio
50-200 shades700-950 shades≥ 4.5:1
White700+ shades≥ 4.5:1

Dark Mode

BackgroundTextRatio
800-950 shades50-300 shades≥ 4.5:1
Black300- shades≥ 4.5:1

Best Practices

Do:

  • Use shade 50-200 on dark backgrounds (800-950)
  • Use shade 700-900 on light backgrounds (50-200)
  • Test color combinations with accessibility tools
  • Provide alternative indicators beyond color alone

Don't:

  • Rely solely on color to convey information
  • Use low-contrast combinations for important content
  • Skip testing in both light and dark modes

Testing Tools