OKLCH to HEX: #E9D5FF
Also known as: Tailwind v3 purple-200
Result
oklch(0.90236 0.06041 306.703) → #E9D5FF
Values are shown at full precision, so converting back gives exactly #e9d5ff. 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.90236 0.06041 306.703)
2. OKLCH → Oklab
a = C·cos H = 0.03611 b = C·sin H = -0.04843
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.906218 m′ = L − 0.1056·a − 0.0639·b = 0.901641 s′ = L − 0.0895·a − 1.2915·b = 0.961680
4. cube
l = 0.906218³ = 0.744214 m = 0.901641³ = 0.732996 s = 0.961680³ = 0.889389
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.814850 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.665387 B = −0.0042·l − 0.7034·m + 1.7076·s = 1.000009
6. linear → sRGB, × 255
R = 0.91373 × 255 = 233.00 → 233 G = 0.83529 × 255 = 213.00 → 213 B = 1.00000 × 255 = 255.00 → 255
7. RGB → HEX
#E9D5FF
All formats
- HEX
- #e9d5ff
- RGB
- rgb(233 213 255)
- RGB (legacy)
- rgb(233, 213, 255)
- HSL
- hsl(268.57 100.00% 91.76%) → hsl(269 100% 92%)
- HWB
- hwb(269 84% 0%)
- OKLCH
- oklch(0.902 0.060 306.7) · oklch(90.2% 0.060 306.7)
- OKLab
- oklab(0.902 0.036 -0.048)
- Lab (D50)
- lab(87.92 12.86 -17.96)
- LCH (D50)
- lch(87.92 22.09 305.60)
- Display P3
- color(display-p3 0.9005 0.8381 0.9879)
- Linear sRGB
- color(srgb-linear 0.8148 0.6654 1.0000)
Gamut: sRGB and Display P3
#E9D5FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.060 and Display P3 reaches 0.067; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #e9d5ff;
color: rgb(233 213 255);
color: hsl(269 100% 92%);
color: oklch(0.902 0.060 306.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.902 0.060 306.7);
}
/* arbitrary values */
class="text-[#e9d5ff] bg-[oklch(0.902_0.060_306.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9005 0.8381 0.9879); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e9d5ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- purple-200#E9D4FF
- violet-200#DDD6FF
- v3 violet-200#DDD6FE
- v3 fuchsia-200#F5D0FE
- fuchsia-200#F6CFFF
- v3 pink-200#FBCFE8
- pink-200#FCCEE8
- lavender#E6E6FA
Lighter and darker, same hue and chroma
- #FDE9FF · oklch(0.962 0.060 306.7) · ΔL +0.06
- #D5C2EB · oklch(0.842 0.060 306.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?