HEX to HSL: #D7D0D7

Also known as: Tailwind mauve-300

Result

#D7D0D7 → hsl(300 8% 83%)

Values are shown at full precision, so converting back gives exactly #d7d0d7. 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.8431
    G = 0.8157
    B = 0.8431
  2. 2. max, min, Δ

    max = 0.8431
    min = 0.8157
    Δ = max − min = 0.0275
  3. 3. L

    L = (max + min) / 2 = 0.8294 = 82.94%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.0805 = 8.05%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.8157 − 0.8431) / 0.0275) mod 6) = 300.00°
  6. 6. HSL

    hsl(300.00 8.05% 82.94%)

All formats

HEX
#d7d0d7
RGB
rgb(215 208 215)
RGB (legacy)
rgb(215, 208, 215)
HSL
hsl(300.00 8.05% 82.94%) → hsl(300 8% 83%)
HWB
hwb(300 82% 16%)
OKLCH
oklch(0.865 0.012 325.7) · oklch(86.5% 0.012 325.7)
OKLab
oklab(0.865 0.010 -0.007)
Lab (D50)
lab(84.20 3.43 -2.57)
LCH (D50)
lch(84.20 4.29 323.14)
Display P3
color(display-p3 0.8383 0.8166 0.8412)
Linear sRGB
color(srgb-linear 0.6795 0.6308 0.6795)

Gamut: sRGB and Display P3

#D7D0D7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.124 and Display P3 reaches 0.138; this color uses 10% of the sRGB chroma available.

CSS snippets

.element {
  color: #d7d0d7;
  color: rgb(215 208 215);
  color: hsl(300 8% 83%);
  color: oklch(0.865 0.012 325.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.865 0.012 325.7);
}
/* arbitrary values */
class="text-[#d7d0d7] bg-[oklch(0.865_0.012_325.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8383 0.8166 0.8412); }
}

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

  • #EBE4EB · oklch(0.925 0.012 325.7) · ΔL +0.06
  • #C4BDC4 · oklch(0.805 0.012 325.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?