Color specimenNo. 09133302

#8B5CF6

Vivid Light Indigo

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

RGB
139, 92, 246
HSL
258°, 90%, 66%
Text
Black on top

Tailwind CSS · violet

tailwind · violet 500

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

Scale context · violet

Click any step to jump to its landing page.

Class name
violet-500
Hex
#8B5CF6
Closest CSS named color
mediumslateblue
Full color breakdown
/color/8b5cf6

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 #8B5CF6 as the text color.

4.23:1
AA failAAA failLarge pass

Rating · AA Large

On black

The quick brown fox

Jumps over the lazy dog. Testing readability of #8B5CF6 as the text color.

4.96:1
AA passAAA failLarge pass

Rating · AA

Recommendation

When using #8B5CF6 as a background, pair it with #000000 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