RGB to HEX: #ED6AFF
Also known as: Tailwind fuchsia-400
Result
rgb(237 106 255) → #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. base 10 → base 16
R = 237 = 14×16 + 13 → ED G = 106 = 6×16 + 10 → 6A B = 255 = 15×16 + 15 → FF
2. pairs → HEX
ED 6A FF → #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?