Toolman

#D4D4D8 color

#D4D4D8#D4D4D8

The swatch above shows #D4D4D8 with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.

#D4D4D8 is a very light, desaturated grey, closest to the CSS named color lightgray (#D3D3D3).

It is also a Tailwind CSS default: zinc-300. That means you can write bg-zinc-300 or text-zinc-300 directly, with no arbitrary-value brackets and no entry in your theme config.

Color values

HEX#D4D4D8
RGBrgb(212, 212, 216)
HSLhsl(240, 5%, 84%)
CMYKcmyk(2%, 2%, 0%, 15%)
Decimal13948120
CSScolor: #D4D4D8;
Android0xFFD4D4D8
SwiftUIColor(red: 0.831, green: 0.831, blue: 0.847, alpha: 1)

Accessibility and contrast

White text on #D4D4D81.48:1 — AA fail · AA large fail · AAA fail
Black text on #D4D4D814.21:1 — AA pass · AA large pass · AAA pass
Recommended text colorblack

WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).

Tints and shades of #D4D4D8

Each swatch keeps the hue and saturation of #D4D4D8 and varies only lightness — the quickest way to build a usable scale from a single brand color.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #D4D4D8

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

Using #D4D4D8 in code

/* CSS */
.element { color: #D4D4D8; background-color: #D4D4D8; }
.element { color: rgb(212 212 216); }
.element { color: hsl(240 5% 84%); }

/* Tailwind */
<div class="bg-zinc-300 text-black">

/* SCSS variable */
$brand: #D4D4D8;

Frequently asked questions

What color is #D4D4D8?

#D4D4D8 is a very light, desaturated grey. Its hue sits at 240° on the color wheel, with 5% saturation and 84% lightness.

What is #D4D4D8 in RGB?

#D4D4D8 converts to rgb(212, 212, 216) — 212 red, 212 green and 216 blue.

What is #D4D4D8 in CMYK?

Approximately cmyk(2%, 2%, 0%, 15%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.

Should text on #D4D4D8 be white or black?

Black gives the better contrast ratio (14.21:1 versus 1.48:1).

What is the complementary color of #D4D4D8?

#D8D8D4 — the hue directly opposite #D4D4D8 on the color wheel.

Convert any color → · Browse all colors