HEX to HSL: #ED6AFF
Also known as: Tailwind fuchsia-400
Result
#ED6AFF → hsl(293 100% 71%)
Values are shown at full precision, so converting back gives exactly #ed6aff. 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.9294 G = 0.4157 B = 1.0000
2. max, min, Δ
max = 1.0000 min = 0.4157 Δ = max − min = 0.5843
3. L
L = (max + min) / 2 = 0.7078 = 70.78%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.9294 − 0.4157) / 0.5843 + 4) = 292.75°
6. HSL
hsl(292.75 100.00% 70.78%)
All formats
- HEX
- #ed6aff
- RGB
- rgb(237 106 255)
- RGB (legacy)
- rgb(237, 106, 255)
- HSL
- hsl(292.75 100.00% 70.78%) → hsl(293 100% 71%)
- HWB
- hwb(293 42% 0%)
- OKLCH
- oklch(0.738 0.237 322.7) · oklch(73.8% 0.237 322.7)
- OKLab
- oklab(0.738 0.188 -0.144)
- Lab (D50)
- lab(65.93 65.94 -51.60)
- LCH (D50)
- lch(65.93 83.73 321.96)
- Display P3
- color(display-p3 0.8662 0.4460 0.9711)
- Linear sRGB
- color(srgb-linear 0.8469 0.1441 1.0000)
Gamut: sRGB and Display P3
#ED6AFF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.237 and Display P3 reaches 0.260; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #ed6aff;
color: rgb(237 106 255);
color: hsl(293 100% 71%);
color: oklch(0.738 0.237 322.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.738 0.237 322.7);
}
/* arbitrary values */
class="text-[#ed6aff] bg-[oklch(0.738_0.237_322.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8662 0.4460 0.9711); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ed6aff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 fuchsia-400#E879F9
- violet#EE82EE
- orchid#DA70D6
- v3 fuchsia-500#D946EF
- purple-400#C27AFF
- v3 purple-400#C084FC
- fuchsia-500#E12AFB
- fuchsia#FF00FF
Lighter and darker, same hue and chroma
- #FF7EFF · oklch(0.798 0.237 322.7) · ΔL +0.06
- #D855EA · oklch(0.678 0.237 322.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?