HEX to HSL: #F1F5F9
Also known as: Tailwind slate-100, Tailwind v3 slate-100
Result
#F1F5F9 → hsl(210 40% 96%)
Values are shown at full precision, so converting back gives exactly #f1f5f9. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. RGB ÷ 255
R = 0.9451 G = 0.9608 B = 0.9765
2. max, min, Δ
max = 0.9765 min = 0.9451 Δ = max − min = 0.0314
3. L
L = (max + min) / 2 = 0.9608 = 96.08%
4. S
S = Δ / (1 − |2L − 1|) = 0.4000 = 40.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.9451 − 0.9608) / 0.0314 + 4) = 210.00°
6. HSL
hsl(210.00 40.00% 96.08%)
All formats
- HEX
- #f1f5f9
- RGB
- rgb(241 245 249)
- RGB (legacy)
- rgb(241, 245, 249)
- HSL
- hsl(210.00 40.00% 96.08%) → hsl(210 40% 96%)
- HWB
- hwb(210 95% 2%)
- OKLCH
- oklch(0.968 0.007 247.9) · oklch(96.8% 0.007 247.9)
- OKLab
- oklab(0.968 -0.003 -0.006)
- Lab (D50)
- lab(96.32 -0.83 -2.42)
- LCH (D50)
- lch(96.32 2.56 250.94)
- Display P3
- color(display-p3 0.9479 0.9603 0.9748)
- Linear sRGB
- color(srgb-linear 0.8796 0.9131 0.9473)
Gamut: sRGB and Display P3
#F1F5F9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.016 and Display P3 reaches 0.017; this color uses 43% of the sRGB chroma available.
CSS snippets
.element {
color: #f1f5f9;
color: rgb(241 245 249);
color: hsl(210 40% 96%);
color: oklch(0.968 0.007 247.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.968 0.007 247.9);
}
/* arbitrary values */
class="text-[#f1f5f9] bg-[oklch(0.968_0.007_247.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9479 0.9603 0.9748); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f1f5f9 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-100#F3F4F6
- zinc-100#F4F4F5
- neutral-100#F5F5F5
- blue-50#EFF6FF
- mist-100#F1F3F3
- stone-100#F5F5F4
- aliceblue#F0F8FF
- mauve-100#F3F1F3
Lighter and darker, same hue and chroma
- #FCFFFF · oklch(1.000 0.007 247.9) · ΔL +0.06
- #DDE1E5 · oklch(0.908 0.007 247.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?