HEX to HSL: #FAFAF9
Also known as: Tailwind stone-50, Tailwind v3 stone-50
Result
#FAFAF9 → hsl(60 9% 98%)
Values are shown at full precision, so converting back gives exactly #fafaf9. 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.9804 G = 0.9804 B = 0.9765
2. max, min, Δ
max = 0.9804 min = 0.9765 Δ = max − min = 0.0039
3. L
L = (max + min) / 2 = 0.9784 = 97.84%
4. S
S = Δ / (1 − |2L − 1|) = 0.0909 = 9.09%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9804 − 0.9765) / 0.0039) mod 6) = 60.00°
6. HSL
hsl(60.00 9.09% 97.84%)
All formats
- HEX
- #fafaf9
- RGB
- rgb(250 250 249)
- RGB (legacy)
- rgb(250, 250, 249)
- HSL
- hsl(60.00 9.09% 97.84%) → hsl(60 9% 98%)
- HWB
- hwb(60 98% 2%)
- OKLCH
- oklch(0.985 0.001 106.4) · oklch(98.5% 0.001 106.4)
- OKLab
- oklab(0.985 0.000 0.001)
- Lab (D50)
- lab(98.25 -0.13 0.48)
- LCH (D50)
- lch(98.25 0.50 105.22)
- Display P3
- color(display-p3 0.9804 0.9804 0.9768)
- Linear sRGB
- color(srgb-linear 0.9560 0.9560 0.9473)
Gamut: sRGB and Display P3
#FAFAF9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.066 and Display P3 reaches 0.068; this color uses 2% of the sRGB chroma available.
CSS snippets
.element {
color: #fafaf9;
color: rgb(250 250 249);
color: hsl(60 9% 98%);
color: oklch(0.985 0.001 106.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.985 0.001 106.4);
}
/* arbitrary values */
class="text-[#fafaf9] bg-[oklch(0.985_0.001_106.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9804 0.9804 0.9768); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fafaf9 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- taupe-50#FBFAF9
- mauve-50#FAFAFA
- gray-50#F9FAFB
- olive-50#FBFBF9
- mist-50#F9FBFB
- slate-50#F8FAFC
- snow#FFFAFA
- ghostwhite#F8F8FF
Lighter and darker, same hue and chroma
- #FFFFFE · oklch(1.000 0.001 106.4) · ΔL +0.06
- #E6E6E5 · oklch(0.925 0.001 106.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?