HEX to HSL: #DDA0DD

Also known as: CSS plum

Result

#DDA0DD → hsl(300 47% 75%)

Values are shown at full precision, so converting back gives exactly #dda0dd. 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.8667
    G = 0.6275
    B = 0.8667
  2. 2. max, min, Δ

    max = 0.8667
    min = 0.6275
    Δ = max − min = 0.2392
  3. 3. L

    L = (max + min) / 2 = 0.7471 = 74.71%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.4729 = 47.29%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.6275 − 0.8667) / 0.2392) mod 6) = 300.00°
  6. 6. HSL

    hsl(300.00 47.29% 74.71%)

All formats

HEX
#dda0dd
RGB
rgb(221 160 221)
RGB (legacy)
rgb(221, 160, 221)
HSL
hsl(300.00 47.29% 74.71%) → hsl(300 47% 75%)
HWB
hwb(300 63% 13%)
OKLCH
oklch(0.783 0.108 326.5) · oklch(78.3% 0.108 326.5)
OKLab
oklab(0.783 0.090 -0.059)
Lab (D50)
lab(73.33 30.64 -21.80)
LCH (D50)
lch(73.33 37.60 324.58)
Display P3
color(display-p3 0.8307 0.6373 0.8522)
Linear sRGB
color(srgb-linear 0.7231 0.3515 0.7231)

Gamut: sRGB and Display P3

#DDA0DD is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.213 and Display P3 reaches 0.236; this color uses 51% of the sRGB chroma available.

CSS snippets

.element {
  color: #dda0dd;
  color: rgb(221 160 221);
  color: hsl(300 47% 75%);
  color: oklch(0.783 0.108 326.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.783 0.108 326.5);
}
/* arbitrary values */
class="text-[#dda0dd] bg-[oklch(0.783_0.108_326.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8307 0.6373 0.8522); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #dda0dd 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

  • #F1B3F1 · oklch(0.843 0.108 326.5) · ΔL +0.06
  • #C98DC9 · oklch(0.723 0.108 326.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?