Violet is one of the color families shipped with this release. Royal purple — creativity and premium feel..
Shades#
100200300400500600700800900950
Palette table#
| Shade | Class fragment | Value | Best role |
|---|---|---|---|
100 | violet-100 | #f5f3ff | Very light — section backgrounds, badges on light UI, tinted code blocks. |
200 | violet-200 | #ede9fe | Light — borders on light themes, dividers with personality, chip backgrounds. |
300 | violet-300 | #ddd6fe | Soft — secondary borders, disabled states with color, placeholder decorations. |
400 | violet-400 | #c4b5fd | Medium-light — icons on dark surfaces, decorative accents, chart lines. |
500 | violet-500 | #a78bfa | The primary step — buttons, links, brand fills, key interactive elements. |
600 | violet-600 | #8b5cf6 | Hover step — hover states for 500 elements, or primary on very light UIs. |
700 | violet-700 | #7c3aed | Active step — pressed states, emphasized text on light tinted backgrounds. |
800 | violet-800 | #6d28d9 | Dark — text on light palettes, headers in tinted sections, dark UI fills. |
900 | violet-900 | #5b21b6 | Very dark — deep section backgrounds, high-contrast text carriers. |
950 | violet-950 | #4c1d95 | Darkest — near-black tinted backgrounds, hero surfaces, footer tones. |
Use it#
<div class="bg-violet-500 text-white p-6 rounded-xl">Violet surface</div>
<p class="text-violet-600 dark:text-violet-400">Adaptive text</p>
<div class="border border-violet-200 dark:border-violet-800 bg-violet-50 dark:bg-violet-950 p-4 rounded-lg">Panel</div>Per-usage guides#
Violet textstext-violet-* in practice.Violet backgroundsbg-violet-* in practice.Violet bordersborder-violet-* in practice.Violet gradientsfrom-violet-* in practice.
Contrast#
Flip point: shades 50–400 want dark text (text-slate-900); shades 500+ (approx.) want white text. Verify with the accessibility/color-contrast|contrast guide.
Related palettes#
colors/indigo|indigo · colors/purple|purple · colors/color-pairing|Pairing recipes
