HSL to HEX: #E9D5FF
Also known as: Tailwind v3 purple-200
Result
hsl(268.57 100.00% 91.76%) → #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
H = 268.57°, S = 100.00%, L = 91.76%
2. C
C = (1 − |2L − 1|) × S = 0.16480
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.07847 (H / 60° = 4.4762, sector 4)
4. m
m = L − C / 2 = 0.83520
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.07847, 0.00000, 0.16480) R = round((0.07847 + 0.83520) × 255) = 233 G = round((0.00000 + 0.83520) × 255) = 213 B = round((0.16480 + 0.83520) × 255) = 255
6. 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?