Colors

Color Accessibility

Contrast ratios and WCAG compliance for the Ontopix color system.

Production

All Ontopix products and content must meet WCAG 2.1 Level AA. Some areas may target AAA where practical.

Contrast Requirements

Element typeRatioLevelApplies to
Normal text4.5:1AAText smaller than 18pt or 14pt bold
Large text3.0:1AA18pt or 14pt bold and larger
Ui components3.0:1AABorders, icons, focus indicators
Enhanced7.0:1AAATarget for critical content

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

Semantic Token Rule

Semantic tokens (defined in semantic.yaml) must be chosen so that the default foreground/background pairing meets at least AA contrast for the intended text size. Dark-mode mappings must independently satisfy the same ratios.

Non-Color Indicators

Color must never be the only signifier of meaning. Pair color with iconography, text labels, or weight changes so information is conveyed to users with color vision deficiencies.

Testing

  • Use automated checkers (axe, Lighthouse) during development
  • Verify final colors with a contrast calculator against real content
  • Test in both light and dark modes

Tools