Color Values
- HEX
- #F9FAFB
- RGB
- rgb(249, 250, 251)
- HSL
- hsl(210, 20%, 98%)
- OKLCH
- oklch(0.985 0.002 248)
- CMYK
- cmyk(1%, 0%, 0%, 2%)
- CSS Variable
- var(--color-gray-50)
- Tailwind Class
- bg-gray-50
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.05:1
On Black
20.1:1
Tailwind Usage — All Utilities
Background
bg-gray-50Text
text-gray-50Border
border-gray-50Ring
ring-gray-50Outline
outline-gray-50Fill
fill-gray-50Stroke
stroke-gray-50From (gradient)
from-gray-50Via (gradient)
via-gray-50To (gradient)
to-gray-50Placeholder
placeholder-gray-50Caret
caret-gray-50Accent
accent-gray-50Decoration
decoration-gray-50Shadow Color
shadow-gray-50Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'gray-50': '#f9fafb',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #F9FAFB;
/* RGB */
background-color: rgb(249, 250, 251);
/* HSL */
background-color: hsl(210, 20%, 98%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.985 0.002 248);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-gray-50);
/* Gradient example */
background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);OKLCH — Modern Color Space
Lightness (L)
0.985
99% perceived brightness
Chroma (C)
0.002
Color intensity / saturation
Hue (H)
248°
Angle on perceptual hue wheel
oklch(0.985 0.002 248)OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.
Design Recommendations
Ultra-light background tint
Shade 50 of the Gray palette
Recommended Uses
- ✓Page backgrounds
- ✓Subtle section fills
- ✓Notification banners
- ✓Hover state backgrounds
- ✓Table row alternates
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #F9FAFB
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Gray 50
Nearest Tailwind equivalent — #F9FAFB
Frequently Asked Questions
- What is the hex code for Tailwind Gray 50?
- Tailwind Gray 50 has the hex code #F9FAFB. Its RGB value is rgb(249, 250, 251) and its HSL value is hsl(210, 20%, 98%).
- What Tailwind utility classes use Gray 50?
- Use bg-gray-50 for backgrounds, text-gray-50 for text color, border-gray-50 for borders, and ring-gray-50 for focus rings. In Tailwind v4 the CSS variable var(--color-gray-50) is available natively.
- Is Tailwind Gray 50 WCAG accessible?
- Tailwind Gray 50 achieves a 1.05:1 contrast ratio on white (Fail) and 20.1:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Gray 50?
- Tailwind Gray 50 in OKLCH is oklch(0.985 0.002 248) — lightness 0.985, chroma 0.002, hue 248°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Gray 50 used for?
- At shade 50, Tailwind Gray 50 is best described as "Ultra-light background tint". Recommended uses: Page backgrounds, Subtle section fills, Notification banners.