HEX to HSL: #E6E6FA
Also known as: CSS lavender
Result
#E6E6FA → hsl(240 67% 94%)
Values are shown at full precision, so converting back gives exactly #e6e6fa. 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.9020 G = 0.9020 B = 0.9804
2. max, min, Δ
max = 0.9804 min = 0.9020 Δ = max − min = 0.0784
3. L
L = (max + min) / 2 = 0.9412 = 94.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.6667 = 66.67%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.9020 − 0.9020) / 0.0784 + 4) = 240.00°
6. HSL
hsl(240.00 66.67% 94.12%)
All formats
- HEX
- #e6e6fa
- RGB
- rgb(230 230 250)
- RGB (legacy)
- rgb(230, 230, 250)
- HSL
- hsl(240.00 66.67% 94.12%) → hsl(240 67% 94%)
- HWB
- hwb(240 90% 2%)
- OKLCH
- oklch(0.931 0.027 285.9) · oklch(93.1% 0.027 285.9)
- OKLab
- oklab(0.931 0.007 -0.026)
- Lab (D50)
- lab(91.74 2.78 -9.72)
- LCH (D50)
- lch(91.74 10.11 285.93)
- Display P3
- color(display-p3 0.9020 0.9020 0.9737)
- Linear sRGB
- color(srgb-linear 0.7913 0.7913 0.9560)
Gamut: sRGB and Display P3
#E6E6FA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.035 and Display P3 reaches 0.038; this color uses 78% of the sRGB chroma available.
CSS snippets
.element {
color: #e6e6fa;
color: rgb(230 230 250);
color: hsl(240 67% 94%);
color: oklch(0.931 0.027 285.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.931 0.027 285.9);
}
/* arbitrary values */
class="text-[#e6e6fa] bg-[oklch(0.931_0.027_285.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9020 0.9020 0.9737); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e6e6fa calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- indigo-100#E0E7FF
- violet-100#EDE9FE
- blue-100#DBEAFE
- slate-200#E2E8F0
- purple-100#F3E8FF
- gray-200#E5E7EB
- mauve-200#E7E4E7
- zinc-200#E4E4E7
Lighter and darker, same hue and chroma
- #FAFAFF · oklch(0.991 0.027 285.9) · ΔL +0.06
- #D2D2E6 · oklch(0.871 0.027 285.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?