Contrastproof

Accessible ramp

Give it one color and get a complete 50 to 950 scale in OKLCh, with the contrast of every step against white and black already worked out.

yours
Every step with its contrast against white and black
StepHexOn whiteOn blackSafe for
501.0919.23text on black
1001.2117.31text on black
2001.4314.72text on black
3001.8611.27text on black
4002.777.59text on black
5004.125.10text on black
600yours5.983.51text on white
7008.202.56text on white
80010.901.93text on white
90013.681.54text on white
95017.891.17text on white

Take it

:root {
  --brand-50: #f4f4ff;
  --brand-100: #e8e7ff;
  --brand-200: #d6d4ff;
  --brand-300: #bcb6ff;
  --brand-400: #9b8cff;
  --brand-500: #8261ff;
  --brand-600: #6d3bee;
  --brand-700: #5b1fd1;
  --brand-800: #4900b2;
  --brand-900: #37008b;
  --brand-950: #1d0052;
}

Why this rule exists

The other tools