HEX to OKLCH: #FDF5E6
Also known as: CSS oldlace
Result
#FDF5E6 → oklch(0.972 0.022 83.3)
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. sRGB → linear
R: 253/255 = 0.99216 → 0.982251 (((x + 0.055) / 1.055)^2.4) G: 245/255 = 0.96078 → 0.913099 (((x + 0.055) / 1.055)^2.4) B: 230/255 = 0.90196 → 0.791298 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.935338 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.914671 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.842473
3. cube root
l′ = ∛0.935338 = 0.977964 m′ = ∛0.914671 = 0.970707 s′ = ∛0.842473 = 0.944464
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.97234 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00253 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.02141
5. Oklab → OKLCH
C = √(a² + b²) = 0.02156 H = atan2(b, a) = 83.264° L = 0.97234
6. OKLCH
oklch(0.97234 0.02156 83.264) rounded: oklch(0.972 0.022 83.3)
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?