Tailwind Purple 500

purple-500 · #A855F7 · rgb(168, 85, 247)

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

HEX#A855F7
RGBrgb(168, 85, 247)
HSLhsl(271, 91%, 65%)
CMYKcmyk(32%, 66%, 0%, 3%)
CSS variable (v4)var(--color-purple-500)
Color nameMedium Orchid (closest)

Classes

bg-purple-500
text-purple-500
border-purple-500
ring-purple-500
from-purple-500 via-purple-500 to-purple-500
bg-purple-500/50   /* 50% opacity */
White text · 3.96:1 · AA (large text only)
Black text · 5.31:1 · AA

Check contrast with any color →

Tailwind purple-500: questions & answers

What is the HEX code of Tailwind purple-500?

Tailwind purple-500 is #A855F7, which is rgb(168, 85, 247) or hsl(271, 91%, 65%).

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

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

What text color works on bg-purple-500?

Black text gives the best contrast: 5.31:1.