HEX to OKLCH: #ED6AFF
Also known as: Tailwind fuchsia-400
Result
#ED6AFF → oklch(0.738 0.237 322.7)
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. sRGB → linear
R: 237/255 = 0.92941 → 0.846873 (((x + 0.055) / 1.055)^2.4) G: 106/255 = 0.41569 → 0.144128 (((x + 0.055) / 1.055)^2.4) B: 255/255 = 1.00000 → 1.000000 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.477846 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.384961 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.745363
3. cube root
l′ = ∛0.477846 = 0.781801 m′ = ∛0.384961 = 0.727454 s′ = ∛0.745363 = 0.906684
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.73816 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.18826 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.14353
5. Oklab → OKLCH
C = √(a² + b²) = 0.23673 H = atan2(b, a) = 322.677° L = 0.73816
6. OKLCH
oklch(0.73816 0.23673 322.677) rounded: oklch(0.738 0.237 322.7)
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?