Gainsboro Color

HEX #DCDCDC · rgb(220, 220, 220) · hsl(0, 0%, 86%)

Gainsboro color codes

Gainsboro is one of the named colors every browser understands. In CSS you can write it as gainsboro or #DCDCDC.

FormatValue
HEX#DCDCDC
RGBrgb(220, 220, 220)
HSLhsl(0, 0%, 86%)
CMYK0%, 0%, 0%, 14%
CSS namegainsboro
.example {
  color: gainsboro;
  background-color: #DCDCDC;
  border-color: rgb(220, 220, 220);
}

Tints and shades of gainsboro

Tints mix the color with white; shades mix it with black.

#FCFCFC90% white
#F6F6F675% white
#F1F1F160% white
#ECECEC45% white
#E7E7E730% white
#E1E1E115% white
#DCDCDCBase
Gainsboro
#BBBBBB15% black
#9A9A9A30% black
#79797945% black
#58585860% black
#37373775% black
#16161690% black

Contrast and readability

Black text
15.31:1
passes AA and AAA
White text
1.37:1
fails

Use black text on gainsboro. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for gainsboro?

The hex code for gainsboro is #DCDCDC.

What is the RGB value of gainsboro?

Gainsboro is rgb(220, 220, 220): 220 red, 220 green and 220 blue on a 0 to 255 scale.

Does gainsboro have a complementary color?

No. Gainsboro has no hue, so it has no complement. It pairs with any color.

Should text on gainsboro be black or white?

Use black text. The contrast ratio is 15.31:1 with black and 1.37:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.