Tailwind violet-500: questions & answers
What is the HEX code of Tailwind violet-500?
Tailwind violet-500 is #8B5CF6, which is rgb(139, 92, 246) or hsl(258, 90%, 66%).
How do I use violet-500 as a background in Tailwind?
Add the class bg-violet-500 to the element. Use text-violet-500 for text and border-violet-500 for borders.
What text color works on bg-violet-500?
Black text gives the best contrast: 4.96:1.