Color · Made a little simpler

Design System Color Tokens

Create nine tonal variants for each of seven roles in both themes. Preview a role, check Text against Base, and download matching CSS and JSON.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Theme preview

PrimarySample label6.00:1 for Text on Base
  • Base #336699
  • Light #D6E0EB
  • Dark #102131
  • Hover #2C5884
  • Active #25496E
  • Bg #EBF0F5
  • Border #9DB6CE
  • Text #FFFFFF
  • Muted #4A6682
Base role colors

Seven roles with nine variants each in light and dark themes.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Design System Color Tokens: how to use it

  1. Choose a palette preset or enter values for primary, secondary, accent, success, warning, error and info.
  2. Switch Preview theme and Preview role to inspect the nine variants and the measured contrast for Text against Base.
  3. Copy an individual token or download the full CSS or JSON. Apply the dark theme with the provided selector.

Limits and notes

Uses sRGB colors. Translucent inputs are blended onto the stated light or dark canvas before export. Text chooses the higher contrast of black and white against each Base token.

How your privacy works →

Design System Color Tokens: common questions

How many tokens are exported?

Each of seven roles gets nine variants in each of two themes. Both exports contain all 126 values.

Which variants are available?

The variant names are base, light, dark, hover, active, bg, border, text and muted.

When does the Text contrast ratio apply?

The reported ratio applies to the Text and Base variants of the selected role and theme. Check other pairings separately.

How does the dark theme switch work?

The default tokens live on :root. Adding data-theme=dark or the dark class to a containing element applies the alternate CSS variables there.

Guides