Tailwind Purple 700

purple-700 · #7E22CE · rgb(126, 34, 206)

purple-700 is a medium vivid violet from the Tailwind CSS default palette, hex code #7E22CE.

HEX#7E22CE
RGBrgb(126, 34, 206)
HSLhsl(272, 72%, 47%)
CMYKcmyk(39%, 83%, 0%, 19%)
CSS variable (v4)var(--color-purple-700)
Color nameBlue Violet (closest)

Classes

bg-purple-700
text-purple-700
border-purple-700
ring-purple-700
from-purple-700 via-purple-700 to-purple-700
bg-purple-700/50   /* 50% opacity */
White text · 6.98:1 · AA
Black text · 3.01:1 · AA (large text only)
text-purple-200 · 5.13:1 · AA

Check contrast with any color →

Tailwind purple-700: questions & answers

What is the HEX code of Tailwind purple-700?

Tailwind purple-700 is #7E22CE, which is rgb(126, 34, 206) or hsl(272, 72%, 47%).

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

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

What text color works on bg-purple-700?

purple-200 (#E9D5FF) is the closest shade of the same color with readable contrast (5.13:1). Plain white text gives 6.98:1.