HEX to RGB: #D4D4D8

Also known as: Tailwind zinc-300, Tailwind v3 zinc-300

Result

#D4D4D8 → rgb(212 212 216)

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. 1. HEX → pairs

    #D4D4D8 → D4 | D4 | D8
  2. 2. base 16 → base 10

    R = D4₁₆ = 13×16 + 4 = 212
    G = D4₁₆ = 13×16 + 4 = 212
    B = D8₁₆ = 13×16 + 8 = 216
  3. 3. RGB

    rgb(212 212 216)

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

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

All converters →

Guides: What is OKLCH?