Tailwind Violet 500

violet-500 · #8B5CF6 · rgb(139, 92, 246)

violet-500 is a light vivid violet from the Tailwind CSS default palette, hex code #8B5CF6.

HEX#8B5CF6
RGBrgb(139, 92, 246)
HSLhsl(258, 90%, 66%)
CMYKcmyk(43%, 63%, 0%, 4%)
CSS variable (v4)var(--color-violet-500)
Color nameMedium Slate Blue (closest)

Classes

bg-violet-500
text-violet-500
border-violet-500
ring-violet-500
from-violet-500 via-violet-500 to-violet-500
bg-violet-500/50   /* 50% opacity */
White text · 4.23:1 · AA (large text only)
Black text · 4.96:1 · AA

Check contrast with any color →

Tailwind violet-500: questions & answers

What is the HEX code of Tailwind violet-500?

Tailwind violet-500 is #8B5CF6, which is rgb(139, 92, 246) or hsl(258, 90%, 66%).

How do I use violet-500 as a background in Tailwind?

Add the class bg-violet-500 to the element. Use text-violet-500 for text and border-violet-500 for borders.

What text color works on bg-violet-500?

Black text gives the best contrast: 4.96:1.