Tailwind Purple 900

purple-900 · #581C87 · rgb(88, 28, 135)

purple-900 is a dark violet from the Tailwind CSS default palette, hex code #581C87.

HEX#581C87
RGBrgb(88, 28, 135)
HSLhsl(274, 66%, 32%)
CMYKcmyk(35%, 79%, 0%, 47%)
CSS variable (v4)var(--color-purple-900)
Color nameRebecca Purple (closest)

Classes

bg-purple-900
text-purple-900
border-purple-900
ring-purple-900
from-purple-900 via-purple-900 to-purple-900
bg-purple-900/50   /* 50% opacity */
White text · 10.88:1 · AAA
Black text · 1.93:1 · fails
text-purple-300 · 6.15:1 · AA

Check contrast with any color →

Tailwind purple-900: questions & answers

What is the HEX code of Tailwind purple-900?

Tailwind purple-900 is #581C87, which is rgb(88, 28, 135) or hsl(274, 66%, 32%).

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

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

What text color works on bg-purple-900?

purple-300 (#D8B4FE) is the closest shade of the same color with readable contrast (6.15:1). Plain white text gives 10.88:1.