Tailwind Purple 400

purple-400 · #C084FC · rgb(192, 132, 252)

purple-400 is a light vivid violet from the Tailwind CSS default palette, hex code #C084FC.

HEX#C084FC
RGBrgb(192, 132, 252)
HSLhsl(270, 95%, 75%)
CMYKcmyk(24%, 48%, 0%, 1%)
CSS variable (v4)var(--color-purple-400)
Color nameLight Purple (closest)

Classes

bg-purple-400
text-purple-400
border-purple-400
ring-purple-400
from-purple-400 via-purple-400 to-purple-400
bg-purple-400/50   /* 50% opacity */
White text · 2.64:1 · fails
Black text · 7.95:1 · AAA
text-purple-950 · 5.68:1 · AA

Check contrast with any color →

Tailwind purple-400: questions & answers

What is the HEX code of Tailwind purple-400?

Tailwind purple-400 is #C084FC, which is rgb(192, 132, 252) or hsl(270, 95%, 75%).

How do I use purple-400 as a background in Tailwind?

Add the class bg-purple-400 to the element. Use text-purple-400 for text and border-purple-400 for borders.

What text color works on bg-purple-400?

purple-950 (#3B0764) is the closest shade of the same color with readable contrast (5.68:1). Plain black text gives 7.95:1.