#D4D4D4 color
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 |
| RGB | rgb(212, 212, 212) |
| HSL | hsl(0, 0%, 83%) |
| CMYK | cmyk(0%, 0%, 0%, 17%) |
| Decimal | 13948116 |
| CSS | color: #D4D4D4; |
| Android | 0xFFD4D4D4 |
| Swift | UIColor(red: 0.831, green: 0.831, blue: 0.831, alpha: 1) |
Accessibility and contrast
| White text on #D4D4D4 | 1.48:1 — AA fail · AA large fail · AAA fail |
| Black text on #D4D4D4 | 14.17:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
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.
Colors that go with #D4D4D4
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
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.