Tailwind Violet 700

violet-700 · #6D28D9 · rgb(109, 40, 217)

violet-700 is a medium vivid violet from the Tailwind CSS default palette, hex code #6D28D9.

HEX#6D28D9
RGBrgb(109, 40, 217)
HSLhsl(263, 70%, 50%)
CMYKcmyk(50%, 82%, 0%, 15%)
CSS variable (v4)var(--color-violet-700)
Color nameBlue Violet (closest)

Classes

bg-violet-700
text-violet-700
border-violet-700
ring-violet-700
from-violet-700 via-violet-700 to-violet-700
bg-violet-700/50   /* 50% opacity */
White text · 7.1:1 · AAA
Black text · 2.96:1 · fails
text-violet-200 · 5.12:1 · AA

Check contrast with any color →

Tailwind violet-700: questions & answers

What is the HEX code of Tailwind violet-700?

Tailwind violet-700 is #6D28D9, which is rgb(109, 40, 217) or hsl(263, 70%, 50%).

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

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

What text color works on bg-violet-700?

violet-200 (#DDD6FE) is the closest shade of the same color with readable contrast (5.12:1). Plain white text gives 7.1:1.