OKLCH to HEX: #FDF5E6
Also known as: CSS oldlace
Result
oklch(0.97234 0.02156 83.264) → #FDF5E6
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. input
oklch(0.97234 0.02156 83.264)
2. OKLCH → Oklab
a = C·cos H = 0.00253 b = C·sin H = 0.02141
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.977963 m′ = L − 0.1056·a − 0.0639·b = 0.970706 s′ = L − 0.0895·a − 1.2915·b = 0.944461
4. cube
l = 0.977963³ = 0.935335 m = 0.970706³ = 0.914667 s = 0.944461³ = 0.842467
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.982249 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.913094 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.791290
6. linear → sRGB, × 255
R = 0.99216 × 255 = 253.00 → 253 G = 0.96078 × 255 = 245.00 → 245 B = 0.90196 × 255 = 230.00 → 230
7. RGB → HEX
#FDF5E6
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?