RGB to HEX: #AD46FF
Also known as: Tailwind purple-500
Result
rgb(173 70 255) → #AD46FF
Values are shown at full precision, so converting back gives exactly #ad46ff. 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 = 173 = 10×16 + 13 → AD G = 70 = 4×16 + 6 → 46 B = 255 = 15×16 + 15 → FF
2. pairs → HEX
AD 46 FF → #AD46FF
All formats
- HEX
- #ad46ff
- RGB
- rgb(173 70 255)
- RGB (legacy)
- rgb(173, 70, 255)
- HSL
- hsl(273.41 100.00% 63.73%) → hsl(273 100% 64%)
- HWB
- hwb(273 27% 0%)
- OKLCH
- oklch(0.622 0.259 305.3) · oklch(62.2% 0.259 305.3)
- OKLab
- oklab(0.622 0.150 -0.211)
- Lab (D50)
- lab(51.55 65.11 -75.16)
- LCH (D50)
- lch(51.55 99.44 310.90)
- Display P3
- color(display-p3 0.6299 0.2997 0.9649)
- Linear sRGB
- color(srgb-linear 0.4179 0.0612 1.0000)
Gamut: sRGB and Display P3
#AD46FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.259 and Display P3 reaches 0.280; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #ad46ff;
color: rgb(173 70 255);
color: hsl(273 100% 64%);
color: oklch(0.622 0.259 305.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.622 0.259 305.3);
}
/* arbitrary values */
class="text-[#ad46ff] bg-[oklch(0.622_0.259_305.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6299 0.2997 0.9649); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ad46ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 purple-500#A855F7
- violet-500#8E51FF
- v3 purple-600#9333EA
- v3 violet-500#8B5CF6
- purple-600#9810FA
- mediumorchid#BA55D3
- v3 fuchsia-600#C026D3
- v3 fuchsia-500#D946EF
Lighter and darker, same hue and chroma
- #C05CFF · oklch(0.682 0.259 305.3) · ΔL +0.06
- #9B2DEA · oklch(0.562 0.259 305.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?