Color specimenNo. 05972406

#5B21B6

Bright Indigo

A deterministic reference card for #5B21B6. Every value, scheme, and snippet below is computed from the hex — no database, no guesswork.

RGB
91, 33, 182
HSL
263°, 69%, 42%
Text
White on top

Tailwind CSS · violet

tailwind · violet 800

The Tailwind CSS utility classes bg-violet-800, text-violet-800, and friends all reference this hex value.

Scale context · violet

Click any step to jump to its landing page.

Class name
violet-800
Hex
#5B21B6
Closest CSS named color
rebeccapurple
Full color breakdown
/color/5b21b6

Developer snippets

Copy-ready code

Every snippet below is generated from the hex — not a hand-maintained table.

Conversions

Same color, seven encodings

Nearest matches

Closest in other design systems

Accessibility

Contrast against white & black

On white

The quick brown fox

Jumps over the lazy dog. Testing readability of #5B21B6 as the text color.

8.98:1
AA passAAA passLarge pass

Rating · AAA

On black

The quick brown fox

Jumps over the lazy dog. Testing readability of #5B21B6 as the text color.

2.34:1
AA failAAA failLarge fail

Rating · Fail

Recommendation

When using #5B21B6 as a background, pair it with #ffffff text for the best WCAG contrast.

Contrast ratios only — one part of WCAG 2.1. Not a certification of accessibility or legal compliance.

Related Tailwind swatches

Other stops in violet