HSL to HEX: #F1F5F9
Also known as: Tailwind slate-100, Tailwind v3 slate-100
Result
hsl(210.00 40.00% 96.08%) → #F1F5F9
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. input
H = 210.00°, S = 40.00%, L = 96.08%
2. C
C = (1 − |2L − 1|) × S = 0.03136
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.01568 (H / 60° = 3.5000, sector 3)
4. m
m = L − C / 2 = 0.94512
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.01568, 0.03136) R = round((0.00000 + 0.94512) × 255) = 241 G = round((0.01568 + 0.94512) × 255) = 245 B = round((0.03136 + 0.94512) × 255) = 249
6. RGB → HEX
#F1F5F9
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?