HEX to HSL: #AD46FF

Also known as: Tailwind purple-500

Result

#AD46FF → hsl(273 100% 64%)

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. RGB ÷ 255

    R = 0.6784
    G = 0.2745
    B = 1.0000
  2. 2. max, min, Δ

    max = 1.0000
    min = 0.2745
    Δ = max − min = 0.7255
  3. 3. L

    L = (max + min) / 2 = 0.6373 = 63.73%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.6784 − 0.2745) / 0.7255 + 4) = 273.41°
  6. 6. HSL

    hsl(273.41 100.00% 63.73%)

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?