HEX to RGB: #D7D0D7
Also known as: Tailwind mauve-300
Result
#D7D0D7 → rgb(215 208 215)
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. HEX → pairs
#D7D0D7 → D7 | D0 | D7
2. base 16 → base 10
R = D7₁₆ = 13×16 + 7 = 215 G = D0₁₆ = 13×16 + 0 = 208 B = D7₁₆ = 13×16 + 7 = 215
3. RGB
rgb(215 208 215)
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).
- zinc-300#D4D4D8
- lightgray#D3D3D3
- taupe-300#D8D2D0
- neutral-300#D4D4D4
- stone-300#D6D3D1
- v3 gray-300#D1D5DB
- gray-300#D1D5DC
- mist-300#D0D6D8
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
Guides: What is OKLCH?