HEX to RGB: #AD46FF

Also known as: Tailwind purple-500

Result

#AD46FF → rgb(173 70 255)

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. 1. HEX → pairs

    #AD46FF → AD | 46 | FF
  2. 2. base 16 → base 10

    R = AD₁₆ = 10×16 + 13 = 173
    G = 46₁₆ = 4×16 + 6 = 70
    B = FF₁₆ = 15×16 + 15 = 255
  3. 3. RGB

    rgb(173 70 255)

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).

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

All converters →

Guides: What is OKLCH?