RGB to HEX: #FFE4E1
Also known as: CSS mistyrose
Result
rgb(255 228 225) → #FFE4E1
Values are shown at full precision, so converting back gives exactly #ffe4e1. 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 = 255 = 15×16 + 15 → FF G = 228 = 14×16 + 4 → E4 B = 225 = 14×16 + 1 → E1
2. pairs → HEX
FF E4 E1 → #FFE4E1
All formats
- HEX
- #ffe4e1
- RGB
- rgb(255 228 225)
- RGB (legacy)
- rgb(255, 228, 225)
- HSL
- hsl(6.00 100.00% 94.12%) → hsl(6 100% 94%)
- HWB
- hwb(6 88% 0%)
- OKLCH
- oklch(0.940 0.030 25.3) · oklch(94.0% 0.030 25.3)
- OKLab
- oklab(0.940 0.027 0.013)
- Lab (D50)
- lab(92.76 9.20 5.03)
- LCH (D50)
- lch(92.76 10.48 28.64)
- Display P3
- color(display-p3 0.9823 0.8979 0.8854)
- Linear sRGB
- color(srgb-linear 1.0000 0.7758 0.7529)
Gamut: sRGB and Display P3
#FFE4E1 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.030 and Display P3 reaches 0.039; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #ffe4e1;
color: rgb(255 228 225);
color: hsl(6 100% 94%);
color: oklch(0.940 0.030 25.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.940 0.030 25.3);
}
/* arbitrary values */
class="text-[#ffe4e1] bg-[oklch(0.940_0.030_25.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9823 0.8979 0.8854); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ffe4e1 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- red-100#FFE2E2
- v3 red-100#FEE2E2
- rose-100#FFE4E6
- pink-100#FCE7F3
- antiquewhite#FAEBD7
- linen#FAF0E6
- taupe-200#E8E4E3
- olive-200#E8E8E3
Lighter and darker, same hue and chroma
- #FFF8F5 · oklch(1.000 0.030 25.3) · ΔL +0.06
- #EBD0CD · oklch(0.880 0.030 25.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?