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.
| Format | Value | |
|---|---|---|
| HEX | #DCDCDC | |
| RGB | rgb(220, 220, 220) | |
| HSL | hsl(0, 0%, 86%) | |
| CMYK | 0%, 0%, 0%, 14% | |
| CSS name | gainsboro |
.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
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
15.31:1
passes AA and AAA
White text
1.37:1
fails
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
#D3D3D3Light Gray
#D8BFD8Thistle
#E6E6FALavender
#FAEBD7Antique White
#F5F5DCBeige
#FFE4E1Misty Rose
Pick any other color with the color picker, or browse all named colors.