Skip to content

Contrast Testing

Text on White Background

CombinationContrastLevelRecommendation
Gray 900 on White18.4:1AAAHeadings
Gray 600 on White7.1:1AAABody text
Gray 500 on White4.7:1AASecondary text
Orange 700 on White4.6:1AAAccent text, links
Orange 800 on White6.4:1AA+Strong accent text

Text on Orange Background

CombinationContrastLevel
White on Orange 5003.1:1Large text only
White on Orange 6003.6:1Large text only
White on Orange 7004.6:1AA

Text on Dark Background

CombinationContrastLevel
White on Gray 90018.4:1AAA
Gray 100 on Gray 90016.2:1AAA
Orange 400 on Gray 9006.2:1AA+

Right vs. Wrong

  • Text in Orange 700 (#C2570A) on a white background
  • Text in Gray 600 (#52525B) as the default text color
  • Orange 500 as a button background with white text (≥24px)
  • Orange 500 as a decorative accent (lines, icons ≥24px)

Wrong

  • ❌ Text in Orange 500 (#FF8500) on a white background
  • ❌ Orange 500 on Orange 50 for small text
  • ❌ Gray 400 as body text color
  • ❌ White on Orange 500 for text below 18px bold

Contrast Testing Tools

Documentation licensed under CC BY-NC 4.0 · Code licensed under MIT