gainsboro (#DCDCDC)

gainsboro is a CSS named color with the hex code #DCDCDC, rgb(220, 220, 220). It is a pale, neutral gray.

gainsboro#DCDCDC
Keywordgainsboro
HEX#dcdcdc
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)

Full #DCDCDC details: palettes, shades, color-blind view →

Description

Gainsboro has a hue of 0°, saturation 0% and lightness 86%, which places it in the gray family. Its strongest channel is red (220).

Using gainsboro in CSS

.title { color: gainsboro; }
.box   { background: gainsboro; border-color: #dcdcdc; }
.soft  { background: rgb(220 220 220 / 20%); }   /* gainsboro at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
lightgray#d3d3d3211, 211, 2112.1
whitesmoke#f5f5f5245, 245, 2455.4
silver#c0c0c0192, 192, 1926.8
snow#fffafa255, 250, 2507
ghostwhite#f8f8ff248, 248, 2557
aliceblue#f0f8ff240, 248, 2557.2
linen#faf0e6250, 240, 2307.4
white#ffffff255, 255, 2557.4

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 1.37:1; with black text: 15.31:1. Black body text on gainsboro meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for gainsboro?
#DCDCDC.
What colors are similar to gainsboro?
lightgray (#d3d3d3), whitesmoke (#f5f5f5), silver (#c0c0c0).