Toolman

#D4D4D4 color

#D4D4D4#D4D4D4

The swatch above shows #D4D4D4 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.

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

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

Color values

HEX#D4D4D4
RGBrgb(212, 212, 212)
HSLhsl(0, 0%, 83%)
CMYKcmyk(0%, 0%, 0%, 17%)
Decimal13948116
CSScolor: #D4D4D4;
Android0xFFD4D4D4
SwiftUIColor(red: 0.831, green: 0.831, blue: 0.831, alpha: 1)

Accessibility and contrast

White text on #D4D4D41.48:1 — AA fail · AA large fail · AAA fail
Black text on #D4D4D414.17: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 #D4D4D4

Each swatch keeps the hue and saturation of #D4D4D4 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 #D4D4D4

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 #D4D4D4 in code

/* CSS */
.element { color: #D4D4D4; background-color: #D4D4D4; }
.element { color: rgb(212 212 212); }
.element { color: hsl(0 0% 83%); }

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

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

Frequently asked questions

What color is #D4D4D4?

#D4D4D4 is a very light, desaturated grey. Its hue sits at 0° on the color wheel, with 0% saturation and 83% lightness.

What is #D4D4D4 in RGB?

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

What is #D4D4D4 in CMYK?

Approximately cmyk(0%, 0%, 0%, 17%). 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 #D4D4D4 be white or black?

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

What is the complementary color of #D4D4D4?

#D4D4D4 — the hue directly opposite #D4D4D4 on the color wheel.

Convert any color → · Browse all colors