HEX to HSL: #E879F9
Also known as: Tailwind v3 fuchsia-400
Result
#E879F9 → hsl(292 91% 73%)
Values are shown at full precision, so converting back gives exactly #e879f9. 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.9098 G = 0.4745 B = 0.9765
2. max, min, Δ
max = 0.9765 min = 0.4745 Δ = max − min = 0.5020
3. L
L = (max + min) / 2 = 0.7255 = 72.55%
4. S
S = Δ / (1 − |2L − 1|) = 0.9143 = 91.43%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.9098 − 0.4745) / 0.5020 + 4) = 292.03°
6. HSL
hsl(292.03 91.43% 72.55%)
All formats
- HEX
- #e879f9
- RGB
- rgb(232 121 249)
- RGB (legacy)
- rgb(232, 121, 249)
- HSL
- hsl(292.03 91.43% 72.55%) → hsl(292 91% 73%)
- HWB
- hwb(292 47% 2%)
- OKLCH
- oklch(0.748 0.207 322.2) · oklch(74.8% 0.207 322.2)
- OKLab
- oklab(0.748 0.163 -0.127)
- Lab (D50)
- lab(67.58 57.16 -45.80)
- LCH (D50)
- lch(67.58 73.25 321.30)
- Display P3
- color(display-p3 0.8530 0.4974 0.9501)
- Linear sRGB
- color(srgb-linear 0.8070 0.1912 0.9473)
Gamut: sRGB and Display P3
#E879F9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.224 and Display P3 reaches 0.246; this color uses 92% of the sRGB chroma available.
CSS snippets
.element {
color: #e879f9;
color: rgb(232 121 249);
color: hsl(292 91% 73%);
color: oklch(0.748 0.207 322.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.748 0.207 322.2);
}
/* arbitrary values */
class="text-[#e879f9] bg-[oklch(0.748_0.207_322.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8530 0.4974 0.9501); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e879f9 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- violet#EE82EE
- fuchsia-400#ED6AFF
- orchid#DA70D6
- purple-400#C27AFF
- v3 purple-400#C084FC
- v3 fuchsia-500#D946EF
- v3 pink-400#F472B6
- pink-400#FB64B6
Lighter and darker, same hue and chroma
- #FD8CFF · oklch(0.808 0.207 322.2) · ΔL +0.06
- #D466E5 · oklch(0.688 0.207 322.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?