OKLCH to HEX: #DDA0DD

Also known as: CSS plum

Result

oklch(0.78328 0.10776 326.545) → #DDA0DD

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

    oklch(0.78328 0.10776 326.545)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.08991
    b = C·sin H = -0.05941
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.806093
    m′ = L − 0.1056·a − 0.0639·b = 0.777583
    s′ = L − 0.0895·a − 1.2915·b = 0.851957
  4. 4. cube

    l = 0.806093³ = 0.523788
    m = 0.777583³ = 0.470154
    s = 0.851957³ = 0.618377
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.723043
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.351530
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.723036
  6. 6. linear → sRGB, × 255

    R = 0.86666 × 255 = 221.00 → 221
    G = 0.62745 × 255 = 160.00 → 160
    B = 0.86666 × 255 = 221.00 → 221
  7. 7. RGB → HEX

    #DDA0DD

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?