HEX to HSL: #E12AFB
Also known as: Tailwind fuchsia-500
Result
#E12AFB → hsl(293 96% 57%)
Values are shown at full precision, so converting back gives exactly #e12afb. 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.8824 G = 0.1647 B = 0.9843
2. max, min, Δ
max = 0.9843 min = 0.1647 Δ = max − min = 0.8196
3. L
L = (max + min) / 2 = 0.5745 = 57.45%
4. S
S = Δ / (1 − |2L − 1|) = 0.9631 = 96.31%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.8824 − 0.1647) / 0.8196 + 4) = 292.54°
6. HSL
hsl(292.54 96.31% 57.45%)
All formats
- HEX
- #e12afb
- RGB
- rgb(225 42 251)
- RGB (legacy)
- rgb(225, 42, 251)
- HSL
- hsl(292.54 96.31% 57.45%) → hsl(293 96% 57%)
- HWB
- hwb(293 16% 2%)
- OKLCH
- oklch(0.666 0.295 322.1) · oklch(66.6% 0.295 322.1)
- OKLab
- oklab(0.666 0.233 -0.181)
- Lab (D50)
- lab(56.35 83.11 -64.74)
- LCH (D50)
- lch(56.35 105.35 322.08)
- Display P3
- color(display-p3 0.8114 0.2411 0.9514)
- Linear sRGB
- color(srgb-linear 0.7529 0.0232 0.9647)
Gamut: sRGB and Display P3
#E12AFB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.307 and Display P3 reaches 0.335; this color uses 96% of the sRGB chroma available.
CSS snippets
.element {
color: #e12afb;
color: rgb(225 42 251);
color: hsl(293 96% 57%);
color: oklch(0.666 0.295 322.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.666 0.295 322.1);
}
/* arbitrary values */
class="text-[#e12afb] bg-[oklch(0.666_0.295_322.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8114 0.2411 0.9514); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e12afb calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 fuchsia-500#D946EF
- fuchsia#FF00FF
- fuchsia-600#C800DE
- v3 fuchsia-600#C026D3
- fuchsia-400#ED6AFF
- purple-500#AD46FF
- mediumorchid#BA55D3
- v3 purple-500#A855F7
Lighter and darker, same hue and chroma
- #F647FF · oklch(0.726 0.295 322.1) · ΔL +0.06
- #CC00E6 · oklch(0.606 0.295 322.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?