HSL to HEX: #D7D0D7

Also known as: Tailwind mauve-300

Result

hsl(300.00 8.05% 82.94%) → #D7D0D7

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

    H = 300.00°, S = 8.05%, L = 82.94%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.02747
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.02747   (H / 60° = 5.0000, sector 5)
  4. 4. m

    m = L − C / 2 = 0.81567
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.02747, 0.00000, 0.02747)
    R = round((0.02747 + 0.81567) × 255) = 215
    G = round((0.00000 + 0.81567) × 255) = 208
    B = round((0.02747 + 0.81567) × 255) = 215
  6. 6. RGB → HEX

    #D7D0D7

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?