HSL to HEX: #D4D4D8
Also known as: Tailwind zinc-300, Tailwind v3 zinc-300
Result
hsl(240.00 4.88% 83.92%) → #D4D4D8
Values are shown at full precision, so converting back gives exactly #d4d4d8. 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
H = 240.00°, S = 4.88%, L = 83.92%
2. C
C = (1 − |2L − 1|) × S = 0.01569
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000 (H / 60° = 4.0000, sector 4)
4. m
m = L − C / 2 = 0.83135
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.00000, 0.01569) R = round((0.00000 + 0.83135) × 255) = 212 G = round((0.00000 + 0.83135) × 255) = 212 B = round((0.01569 + 0.83135) × 255) = 216
6. RGB → HEX
#D4D4D8
All formats
- HEX
- #d4d4d8
- RGB
- rgb(212 212 216)
- RGB (legacy)
- rgb(212, 212, 216)
- HSL
- hsl(240.00 4.88% 83.92%) → hsl(240 5% 84%)
- HWB
- hwb(240 83% 15%)
- OKLCH
- oklch(0.871 0.005 286.3) · oklch(87.1% 0.005 286.3)
- OKLab
- oklab(0.871 0.002 -0.005)
- Lab (D50)
- lab(85.00 0.55 -1.98)
- LCH (D50)
- lch(85.00 2.05 285.40)
- Display P3
- color(display-p3 0.8314 0.8314 0.8457)
- Linear sRGB
- color(srgb-linear 0.6584 0.6584 0.6867)
Gamut: sRGB and Display P3
#D4D4D8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.066 and Display P3 reaches 0.073; this color uses 8% of the sRGB chroma available.
CSS snippets
.element {
color: #d4d4d8;
color: rgb(212 212 216);
color: hsl(240 5% 84%);
color: oklch(0.871 0.005 286.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.871 0.005 286.3);
}
/* arbitrary values */
class="text-[#d4d4d8] bg-[oklch(0.871_0.005_286.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8314 0.8314 0.8457); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d4d4d8 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 gray-300#D1D5DB
- neutral-300#D4D4D4
- gray-300#D1D5DC
- lightgray#D3D3D3
- mist-300#D0D6D8
- stone-300#D6D3D1
- mauve-300#D7D0D7
- taupe-300#D8D2D0
Lighter and darker, same hue and chroma
- #E8E8EC · oklch(0.931 0.005 286.3) · ΔL +0.06
- #C1C1C5 · oklch(0.811 0.005 286.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?