OKLCH to HEX: #ED6AFF
Also known as: Tailwind fuchsia-400
Result
oklch(0.73816 0.23673 322.677) → #ED6AFF
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. input
oklch(0.73816 0.23673 322.677)
2. OKLCH → Oklab
a = C·cos H = 0.18825 b = C·sin H = -0.14353
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.781798 m′ = L − 0.1056·a − 0.0639·b = 0.727453 s′ = L − 0.0895·a − 1.2915·b = 0.906683
4. cube
l = 0.781798³ = 0.477841 m = 0.727453³ = 0.384959 s = 0.906683³ = 0.745360
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.846858 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.144131 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.999995
6. linear → sRGB, × 255
R = 0.92940 × 255 = 237.00 → 237 G = 0.41569 × 255 = 106.00 → 106 B = 1.00000 × 255 = 255.00 → 255
7. RGB → HEX
#ED6AFF
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?