Tailwind Violet 800

violet-800 · #5B21B6 · rgb(91, 33, 182)

violet-800 is a medium violet from the Tailwind CSS default palette, hex code #5B21B6.

HEX#5B21B6
RGBrgb(91, 33, 182)
HSLhsl(263, 69%, 42%)
CMYKcmyk(50%, 82%, 0%, 29%)
CSS variable (v4)var(--color-violet-800)
Color nameIndigo Blue (closest)

Classes

bg-violet-800
text-violet-800
border-violet-800
ring-violet-800
from-violet-800 via-violet-800 to-violet-800
bg-violet-800/50   /* 50% opacity */
White text · 8.98:1 · AAA
Black text · 2.34:1 · fails
text-violet-300 · 4.87:1 · AA

Check contrast with any color →

Tailwind violet-800: questions & answers

What is the HEX code of Tailwind violet-800?

Tailwind violet-800 is #5B21B6, which is rgb(91, 33, 182) or hsl(263, 69%, 42%).

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

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

What text color works on bg-violet-800?

violet-300 (#C4B5FD) is the closest shade of the same color with readable contrast (4.87:1). Plain white text gives 8.98:1.