OKLCH to HEX: #FFE4E1
Also known as: CSS mistyrose
Result
oklch(0.94001 0.03008 25.281) → #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. input
oklch(0.94001 0.03008 25.281)
2. OKLCH → Oklab
a = C·cos H = 0.02720 b = C·sin H = 0.01285
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.953562 m′ = L − 0.1056·a − 0.0639·b = 0.936319 s′ = L − 0.0895·a − 1.2915·b = 0.920986
4. cube
l = 0.953562³ = 0.867056 m = 0.936319³ = 0.820863 s = 0.920986³ = 0.781194
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 1.000016 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.775811 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.752929
6. linear → sRGB, × 255
R = 1.00000 × 255 = 255.00 → 255 G = 0.89411 × 255 = 228.00 → 228 B = 0.88235 × 255 = 225.00 → 225
7. RGB → HEX
#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?