HEX to HSL: #FDF5E6
Also known as: CSS oldlace
Result
#FDF5E6 → hsl(39 85% 95%)
Values are shown at full precision, so converting back gives exactly #fdf5e6. 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.9922 G = 0.9608 B = 0.9020
2. max, min, Δ
max = 0.9922 min = 0.9020 Δ = max − min = 0.0902
3. L
L = (max + min) / 2 = 0.9471 = 94.71%
4. S
S = Δ / (1 − |2L − 1|) = 0.8519 = 85.19%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9608 − 0.9020) / 0.0902) mod 6) = 39.13°
6. HSL
hsl(39.13 85.19% 94.71%)
All formats
- HEX
- #fdf5e6
- RGB
- rgb(253 245 230)
- RGB (legacy)
- rgb(253, 245, 230)
- HSL
- hsl(39.13 85.19% 94.71%) → hsl(39 85% 95%)
- HWB
- hwb(39 90% 1%)
- OKLCH
- oklch(0.972 0.022 83.3) · oklch(97.2% 0.022 83.3)
- OKLab
- oklab(0.972 0.003 0.021)
- Lab (D50)
- lab(96.87 0.91 8.25)
- LCH (D50)
- lch(96.87 8.30 83.68)
- Display P3
- color(display-p3 0.9867 0.9618 0.9080)
- Linear sRGB
- color(srgb-linear 0.9823 0.9131 0.7913)
Gamut: sRGB and Display P3
#FDF5E6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.028 and Display P3 reaches 0.034; this color uses 78% of the sRGB chroma available.
CSS snippets
.element {
color: #fdf5e6;
color: rgb(253 245 230);
color: hsl(39 85% 95%);
color: oklch(0.972 0.022 83.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.972 0.022 83.3);
}
/* arbitrary values */
class="text-[#fdf5e6] bg-[oklch(0.972_0.022_83.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9867 0.9618 0.9080); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fdf5e6 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- orange-50#FFF7ED
- seashell#FFF5EE
- linen#FAF0E6
- amber-50#FFFBEB
- floralwhite#FFFAF0
- yellow-50#FEFCE8
- cornsilk#FFF8DC
- beige#F5F5DC
Lighter and darker, same hue and chroma
- #FFFEEF · oklch(1.000 0.022 83.3) · ΔL +0.06
- #E9E1D2 · oklch(0.912 0.022 83.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?