Violet is one of the fifty hues the v2 generator can ramp into ten shades. A mid-spectrum hue with broad utility across surfaces, text and accents.

Ramp structure#

StepRole
100–300Tinted surfaces, light-mode backgrounds, badges
400–600Primary interactive range: buttons, links, highlights
700–900Dark surfaces, strong text, dark-mode fills
950Deepest step — near-black tinted backgrounds

Generating it#

js
const css = new CSSGenerator({
  theme: { colors: { violet: true } },
}).generate();
// emits text-violet-*, bg-violet-*, border-violet-* ramps

In themes#

The five presets bias different hue families: Neon Cyber favors saturated steps, Pastel Dream clamps saturation, Nature pulls selectively on it. See Themes.

Color hub · Color pipeline