#5B21B6 — Tints, Shades & Color Values

#5B21B6

#5B21B6 is a medium, vivid violet. In Tailwind CSS this exact color is the utility class violet-800 (e.g. bg-violet-800, text-violet-800). Its nearest CSS named color is rebeccapurple (#663399). For readable text on a #5B21B6 background, white text gives the strongest contrast (8.98:1). #5B21B6 sits in the middle of the lightness range, so it can serve as a primary brand or accent color — use its tints for backgrounds and its shades for text and pressed states.

Want to fine-tune this color interactively? Open #5B21B6 in the tint & shade generator to explore the full lightness, hue, and chroma scales and copy any step.

Color Values

Hex#5B21B6
RGBrgb(91, 33, 182)
HSLhsl(263, 69%, 42%)
HSV / HSB263°, 82%, 71%
Nearest namedrebeccapurple (#663399)

Need these in another format? Use our hex to RGB converter for quick two-way conversion.

#5B21B6 in Tailwind CSS (violet-800)

#5B21B6 ships with Tailwind CSS as violet-800 — use it as bg-violet-800, text-violet-800, or border-violet-800. It sits at step 800 of the violet ramp; every other step links to its own page:

Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.

Tints of #5B21B6 (Mixed with White)

Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.

Shades of #5B21B6 (Mixed with Black)

Each step blends the base color toward black using new = old × (1 − factor).

WCAG Contrast & Accessibility

Contrast ratios for text placed on a #5B21B6 background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).

Text color White text 8.98:1 — AA normal: Pass · AA large: Pass · AAA: Pass
Black text 2.34:1 — AA normal: Fail · AA large: Fail · AAA: Fail

If neither pure white nor pure black reaches the level you need, pick a lighter tint of #5B21B6 from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.

More violet colors in the library: #6B21A8 (purple-800), #7E22CE (purple-700), #8E44AD, #581C87 (purple-900), #9B59B6, #9333EA (purple-600).

Frequently Asked Questions

Browse more colors in the color library, or start from any hex code on the HexTints homepage.

Building a brand around #5B21B6? Put it on a free link-in-bio page →