Gainsboro Color Code: Hex #DCDCDC
The hex code for Gainsboro is #DCDCDC (the CSS keyword gainsboro). Gainsboro RGB code: rgb(220, 220, 220).
#DCDCDCThe same code in all 2 listsGainsboro color codes: the Gainsboro hex code in every format
Sources
Properties
- Hex codes
- the same in all 2 color lists
- Family
- gray
- Contrast
- 1.37:1 with white, 15.31:1 with black
- CSS keyword
- gainsboro
- Character
- light, near-neutral
- Readable text on it
- black (AA)
Gainsboro was not in the original 1987 X11 list; it arrived with Paul Raveling’s additions of light and off-white colors copied from Sinclair Paints samples.
A light, almost neutral tint. In code, gainsboro gives exactly this hex value. Every list that includes the name agrees on it, so there is only one code to remember.
Black text reads best on it; white text does not pass WCAG AA. Light versions fade to white quickly, so for backgrounds use it near full strength. Next to Light Gray, its closest named neighbour, it looks lighter, about as saturated and neither warmer nor cooler; beside White Smoke it looks darker, about as saturated and neither warmer nor cooler. It is one of the lightest of the gray family here.
Colors that go with Gainsboro
Complementary: the opposite of Gainsboro
#DCDCDCBlack text 15.31:1#DCDCDCBlack text 15.31:1#ECECECBlack text 17.78:1#888888Black text 5.92:1
Analogous
#DCDCDCBlack text 15.31:1#DCDCDCBlack text 15.31:1#DCDCDCBlack text 15.31:1#F1F1F1Black text 18.59:1
Triadic
#DCDCDCBlack text 15.31:1#DCDCDCBlack text 15.31:1#DCDCDCBlack text 15.31:1#F6F6F6Black text 19.43:1
Monochrome
#3C3C3CWhite text 11.03:1#888888Black text 5.92:1#DCDCDCBlack text 15.31:1#E6E6E6Black text 16.83:1#F1F1F1Black text 18.59:1
With neutrals
#DCDCDCBlack text 15.31:1#F6F6F6Black text 19.43:1#1B1B1BWhite text 17.22:1#9B9B9BBlack text 7.56:1
Preview
Heading on Gainsboro
Body text on this color, 15.31:1.
ButtonHeading in Gainsboro
Text in this color on white, 1.37:1.
ButtonTints and shades
#F6F6F6#F1F1F1#ECECEC#E6E6E6#E1E1E1#DCDCDC#B1B1B1#888888#616161#3C3C3C#1B1B1B
WhiteGainsboroBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 3 Nov 2026)
- Listed in CSS Color 4, meodai color-name-list. About these lists.
Try it: