RGB to HEX: #FDF5E6
Also known as: CSS oldlace
Result
rgb(253 245 230) → #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. base 10 → base 16
R = 253 = 15×16 + 13 → FD G = 245 = 15×16 + 5 → F5 B = 230 = 14×16 + 6 → E6
2. pairs → HEX
FD F5 E6 → #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?