Tailwind Violet 900

violet-900 · #4C1D95 · rgb(76, 29, 149)

violet-900 is a dark violet from the Tailwind CSS default palette, hex code #4C1D95.

HEX#4C1D95
RGBrgb(76, 29, 149)
HSLhsl(264, 67%, 35%)
CMYKcmyk(49%, 81%, 0%, 42%)
CSS variable (v4)var(--color-violet-900)
Color nameIndigo Blue (closest)

Classes

bg-violet-900
text-violet-900
border-violet-900
ring-violet-900
from-violet-900 via-violet-900 to-violet-900
bg-violet-900/50   /* 50% opacity */
White text · 10.95:1 · AAA
Black text · 1.92:1 · fails
text-violet-300 · 5.93:1 · AA

Check contrast with any color →

Tailwind violet-900: questions & answers

What is the HEX code of Tailwind violet-900?

Tailwind violet-900 is #4C1D95, which is rgb(76, 29, 149) or hsl(264, 67%, 35%).

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

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

What text color works on bg-violet-900?

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