Tailwind Violet 300

violet-300 · #C4B5FD · rgb(196, 181, 253)

violet-300 is a very light vivid blue from the Tailwind CSS default palette, hex code #C4B5FD.

HEX#C4B5FD
RGBrgb(196, 181, 253)
HSLhsl(252, 95%, 85%)
CMYKcmyk(23%, 28%, 0%, 1%)
CSS variable (v4)var(--color-violet-300)
Color nameLilac (closest)

Classes

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

Check contrast with any color →

Tailwind violet-300: questions & answers

What is the HEX code of Tailwind violet-300?

Tailwind violet-300 is #C4B5FD, which is rgb(196, 181, 253) or hsl(252, 95%, 85%).

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

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

What text color works on bg-violet-300?

violet-800 (#5B21B6) is the closest shade of the same color with readable contrast (4.87:1). Plain black text gives 11.38:1.