Tailwind green-500: questions & answers
What is the HEX code of Tailwind green-500?
Tailwind green-500 is #22C55E, which is rgb(34, 197, 94) or hsl(142, 71%, 45%).
How do I use green-500 as a background in Tailwind?
Add the class bg-green-500 to the element. Use text-green-500 for text and border-green-500 for borders.
What text color works on bg-green-500?
green-950 (#052E16) is the closest shade of the same color with readable contrast (6.54:1). Plain black text gives 9.22:1.