RGB to HEX: #9333EA
Also known as: Tailwind v3 purple-600
Result
rgb(147 51 234) → #9333EA
Values are shown at full precision, so converting back gives exactly #9333ea. 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 = 147 = 9×16 + 3 → 93 G = 51 = 3×16 + 3 → 33 B = 234 = 14×16 + 10 → EA
2. pairs → HEX
93 33 EA → #9333EA
All formats
- HEX
- #9333ea
- RGB
- rgb(147 51 234)
- RGB (legacy)
- rgb(147, 51, 234)
- HSL
- hsl(271.48 81.33% 55.88%) → hsl(271 81% 56%)
- HWB
- hwb(271 20% 8%)
- OKLCH
- oklch(0.558 0.252 302.3) · oklch(55.8% 0.252 302.3)
- OKLab
- oklab(0.558 0.135 -0.213)
- Lab (D50)
- lab(44.02 63.35 -75.85)
- LCH (D50)
- lch(44.02 98.82 309.87)
- Display P3
- color(display-p3 0.5330 0.2257 0.8842)
- Linear sRGB
- color(srgb-linear 0.2918 0.0331 0.8228)
Gamut: sRGB and Display P3
#9333EA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.294 and Display P3 reaches 0.307; this color uses 86% of the sRGB chroma available.
CSS snippets
.element {
color: #9333ea;
color: rgb(147 51 234);
color: hsl(271 81% 56%);
color: oklch(0.558 0.252 302.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.558 0.252 302.3);
}
/* arbitrary values */
class="text-[#9333ea] bg-[oklch(0.558_0.252_302.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5330 0.2257 0.8842); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9333ea calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- blueviolet#8A2BE2
- purple-600#9810FA
- v3 violet-600#7C3AED
- darkorchid#9932CC
- darkviolet#9400D3
- violet-600#7F22FE
- violet-500#8E51FF
- purple-700#8200DB
Lighter and darker, same hue and chroma
- #A54BFF · oklch(0.618 0.252 302.3) · ΔL +0.06
- #8113D5 · oklch(0.498 0.252 302.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?