Tailwind Violet 600

violet-600 · #7C3AED · rgb(124, 58, 237)

violet-600 is a medium vivid violet from the Tailwind CSS default palette, hex code #7C3AED.

HEX#7C3AED
RGBrgb(124, 58, 237)
HSLhsl(262, 83%, 58%)
CMYKcmyk(48%, 76%, 0%, 7%)
CSS variable (v4)var(--color-violet-600)
Color nameBlue Violet (closest)

Classes

bg-violet-600
text-violet-600
border-violet-600
ring-violet-600
from-violet-600 via-violet-600 to-violet-600
bg-violet-600/50   /* 50% opacity */
White text · 5.7:1 · AA
Black text · 3.69:1 · AA (large text only)
text-violet-100 · 4.8:1 · AA

Check contrast with any color →

Tailwind violet-600: questions & answers

What is the HEX code of Tailwind violet-600?

Tailwind violet-600 is #7C3AED, which is rgb(124, 58, 237) or hsl(262, 83%, 58%).

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

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

What text color works on bg-violet-600?

violet-100 (#EDE9FE) is the closest shade of the same color with readable contrast (4.8:1). Plain white text gives 5.7:1.