Tailwind Gray 50

gray-50 · #F9FAFB · rgb(249, 250, 251)

gray-50 is a very light muted white from the Tailwind CSS default palette, hex code #F9FAFB.

HEX#F9FAFB
RGBrgb(249, 250, 251)
HSLhsl(210, 20%, 98%)
CMYKcmyk(1%, 0%, 0%, 2%)
CSS variable (v4)var(--color-gray-50)
Color nameGhost White (closest)

Classes

bg-gray-50
text-gray-50
border-gray-50
ring-gray-50
from-gray-50 via-gray-50 to-gray-50
bg-gray-50/50   /* 50% opacity */
White text · 1.05:1 · fails
Black text · 20.1:1 · AAA
text-gray-500 · 4.63:1 · AA

Check contrast with any color →

Tailwind gray-50: questions & answers

What is the HEX code of Tailwind gray-50?

Tailwind gray-50 is #F9FAFB, which is rgb(249, 250, 251) or hsl(210, 20%, 98%).

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

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

What text color works on bg-gray-50?

gray-500 (#6B7280) is the closest shade of the same color with readable contrast (4.63:1). Plain black text gives 20.1:1.