Tailwind Gray 500

gray-500 · #6B7280 · rgb(107, 114, 128)

gray-500 is a medium gray from the Tailwind CSS default palette, hex code #6B7280.

HEX#6B7280
RGBrgb(107, 114, 128)
HSLhsl(220, 9%, 46%)
CMYKcmyk(16%, 11%, 0%, 50%)
CSS variable (v4)var(--color-gray-500)
Color nameSteel (closest)

Classes

bg-gray-500
text-gray-500
border-gray-500
ring-gray-500
from-gray-500 via-gray-500 to-gray-500
bg-gray-500/50   /* 50% opacity */
White text · 4.83:1 · AA
Black text · 4.34:1 · AA (large text only)
text-gray-50 · 4.63:1 · AA

Check contrast with any color →

Tailwind gray-500: questions & answers

What is the HEX code of Tailwind gray-500?

Tailwind gray-500 is #6B7280, which is rgb(107, 114, 128) or hsl(220, 9%, 46%).

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

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

What text color works on bg-gray-500?

gray-50 (#F9FAFB) is the closest shade of the same color with readable contrast (4.63:1). Plain white text gives 4.83:1.