Palette Generator

Generate a tonal scale from a base color, check WCAG contrast, and export tokens.

Base color

Format #RGB or #RRGGBB

Color scale

WCAG contrast

Ratio: 8.34:1

  • AA normal textPass
  • AA large textPass
  • AAA normal textPass
  • AAA large textPass

Human-centered design needs intentional color and enough contrast.

Human-centered design needs intentional color and enough contrast.

UI preview

Light surface

Section heading

Supporting copy to judge readability on light and dark surfaces.

Sample link
Badge

Sample card

Surface with type and accent from the generated palette.

Tab to this button to see the focus ring.

Dark surface

Section heading

Supporting copy to judge readability on light and dark surfaces.

Sample link
Badge

Sample card

Surface with type and accent from the generated palette.

Export

:root {
  --color-primary-50: #f0e9ff;
  --color-primary-100: #e8e0ff;
  --color-primary-200: #d7cdff;
  --color-primary-300: #c1b3ff;
  --color-primary-400: #a692ff;
  --color-primary-500: #7e5eff;
  --color-primary-600: #5d21fb;
  --color-primary-700: #4500cd;
  --color-primary-800: #33009d;
  --color-primary-900: #22006f;
  --color-primary-950: #180057;
}