Tailwind Slate 50

slate-50 · #F8FAFC · rgb(248, 250, 252)

slate-50 is a very light white from the Tailwind CSS default palette, hex code #F8FAFC.

HEX#F8FAFC
RGBrgb(248, 250, 252)
HSLhsl(210, 40%, 98%)
CMYKcmyk(2%, 1%, 0%, 1%)
CSS variable (v4)var(--color-slate-50)
Color nameGhost White (closest)

Classes

bg-slate-50
text-slate-50
border-slate-50
ring-slate-50
from-slate-50 via-slate-50 to-slate-50
bg-slate-50/50   /* 50% opacity */
White text · 1.05:1 · fails
Black text · 20.07:1 · AAA
text-slate-500 · 4.55:1 · AA

Check contrast with any color →

Tailwind slate-50: questions & answers

What is the HEX code of Tailwind slate-50?

Tailwind slate-50 is #F8FAFC, which is rgb(248, 250, 252) or hsl(210, 40%, 98%).

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

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

What text color works on bg-slate-50?

slate-500 (#64748B) is the closest shade of the same color with readable contrast (4.55:1). Plain black text gives 20.07:1.