Tailwind Violet 50

violet-50 · #F5F3FF · rgb(245, 243, 255)

violet-50 is a very light vivid white from the Tailwind CSS default palette, hex code #F5F3FF.

HEX#F5F3FF
RGBrgb(245, 243, 255)
HSLhsl(250, 100%, 98%)
CMYKcmyk(4%, 5%, 0%, 0%)
CSS variable (v4)var(--color-violet-50)
Color nameGhost White (closest)

Classes

bg-violet-50
text-violet-50
border-violet-50
ring-violet-50
from-violet-50 via-violet-50 to-violet-50
bg-violet-50/50   /* 50% opacity */
White text · 1.1:1 · fails
Black text · 19.15:1 · AAA
text-violet-600 · 5.2:1 · AA

Check contrast with any color →

Tailwind violet-50: questions & answers

What is the HEX code of Tailwind violet-50?

Tailwind violet-50 is #F5F3FF, which is rgb(245, 243, 255) or hsl(250, 100%, 98%).

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

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

What text color works on bg-violet-50?

violet-600 (#7C3AED) is the closest shade of the same color with readable contrast (5.2:1). Plain black text gives 19.15:1.