HEX to HSL: #E9D5FF
Also known as: Tailwind v3 purple-200
Result
#E9D5FF → hsl(269 100% 92%)
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. RGB ÷ 255
R = 0.9137 G = 0.8353 B = 1.0000
2. max, min, Δ
max = 1.0000 min = 0.8353 Δ = max − min = 0.1647
3. L
L = (max + min) / 2 = 0.9176 = 91.76%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.9137 − 0.8353) / 0.1647 + 4) = 268.57°
6. HSL
hsl(268.57 100.00% 91.76%)
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?