Tailwind Purple 300

purple-300 · #D8B4FE · rgb(216, 180, 254)

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

HEX#D8B4FE
RGBrgb(216, 180, 254)
HSLhsl(269, 97%, 85%)
CMYKcmyk(15%, 29%, 0%, 0%)
CSS variable (v4)var(--color-purple-300)
Color nameMauve (closest)

Classes

bg-purple-300
text-purple-300
border-purple-300
ring-purple-300
from-purple-300 via-purple-300 to-purple-300
bg-purple-300/50   /* 50% opacity */
White text · 1.77:1 · fails
Black text · 11.88:1 · AAA
text-purple-800 · 4.93:1 · AA

Check contrast with any color →

Tailwind purple-300: questions & answers

What is the HEX code of Tailwind purple-300?

Tailwind purple-300 is #D8B4FE, which is rgb(216, 180, 254) or hsl(269, 97%, 85%).

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

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

What text color works on bg-purple-300?

purple-800 (#6B21A8) is the closest shade of the same color with readable contrast (4.93:1). Plain black text gives 11.88:1.