Tailwind Purple 800

purple-800 · #6B21A8 · rgb(107, 33, 168)

purple-800 is a dark violet from the Tailwind CSS default palette, hex code #6B21A8.

HEX#6B21A8
RGBrgb(107, 33, 168)
HSLhsl(273, 67%, 39%)
CMYKcmyk(36%, 80%, 0%, 34%)
CSS variable (v4)var(--color-purple-800)
Color nameRebecca Purple (closest)

Classes

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

Check contrast with any color →

Tailwind purple-800: questions & answers

What is the HEX code of Tailwind purple-800?

Tailwind purple-800 is #6B21A8, which is rgb(107, 33, 168) or hsl(273, 67%, 39%).

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

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

What text color works on bg-purple-800?

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