Gainsboro — #DCDCDC
#DCDCDC is a very light, desaturated grey. It is the CSS named color gainsboro.
Color values
| HEX | #DCDCDC |
| RGB | rgb(220, 220, 220) |
| HSL | hsl(0, 0%, 86%) |
| CMYK | cmyk(0%, 0%, 0%, 14%) |
| Decimal | 14474460 |
| CSS | color: #DCDCDC; |
| Android | 0xFFDCDCDC |
| Swift | UIColor(red: 0.863, green: 0.863, blue: 0.863, alpha: 1) |
Accessibility and contrast
| White text on #DCDCDC | 1.37:1 — AA fail · AA large fail · AAA fail |
| Black text on #DCDCDC | 15.31: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 #DCDCDC
Each swatch keeps the hue and saturation of #DCDCDC and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #DCDCDC
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #DCDCDC in code
/* CSS */
.element { color: #DCDCDC; background-color: #DCDCDC; }
.element { color: rgb(220 220 220); }
.element { color: hsl(0 0% 86%); }
/* Tailwind arbitrary value */
<div class="bg-[#DCDCDC] text-black">
/* SCSS variable */
$brand: #DCDCDC;
Frequently asked questions
What color is #DCDCDC?
#DCDCDC is a very light, desaturated grey, which CSS calls gainsboro. Its hue sits at 0° on the color wheel, with 0% saturation and 86% lightness.
What is #DCDCDC in RGB?
#DCDCDC converts to rgb(220, 220, 220) — 220 red, 220 green and 220 blue.
What is #DCDCDC in CMYK?
Approximately cmyk(0%, 0%, 0%, 14%). 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 #DCDCDC be white or black?
Black gives the better contrast ratio (15.31:1 versus 1.37:1).
What is the complementary color of #DCDCDC?
#DBDBDB — the hue directly opposite #DCDCDC on the color wheel.