/color-shades

Determine color contrast at a glance from the names of colors.

Primary LanguageJavaScriptMIT LicenseMIT

color-shades

Use shades to determine accessible color contrast at a glance.

  • Use to generate a numerical shade from 0 to 200 based on a color's luminance.
  • Use shades when naming colors (for example, "green105").
  • Two colors with a difference of 100 or more have ≥ 4.5 contrast.
  • Two colors with a difference of 75 or more have ≥ 3.0 contrast.