OKLCH to HEX: #D7D0D7
Also known as: Tailwind mauve-300
Result
oklch(0.86523 0.01218 325.682) → #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. input
oklch(0.86523 0.01218 325.682)
2. OKLCH → Oklab
a = C·cos H = 0.01006 b = C·sin H = -0.00687
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.867735 m′ = L − 0.1056·a − 0.0639·b = 0.864607 s′ = L − 0.0895·a − 1.2915·b = 0.873198
4. cube
l = 0.867735³ = 0.653374 m = 0.864607³ = 0.646332 s = 0.873198³ = 0.665792
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.679534 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.630758 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.679533
6. linear → sRGB, × 255
R = 0.84313 × 255 = 215.00 → 215 G = 0.81569 × 255 = 208.00 → 208 B = 0.84313 × 255 = 215.00 → 215
7. 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).
- 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?