Tailwind violet-400: questions & answers
What is the HEX code of Tailwind violet-400?
Tailwind violet-400 is #A78BFA, which is rgb(167, 139, 250) or hsl(255, 92%, 76%).
How do I use violet-400 as a background in Tailwind?
Add the class bg-violet-400 to the element. Use text-violet-400 for text and border-violet-400 for borders.
What text color works on bg-violet-400?
violet-950 (#2E1065) is the closest shade of the same color with readable contrast (5.6:1). Plain black text gives 7.72:1.