AfoliOpen Afoli →

Gainsboro color #DCDCDC

Gainsboro is one of the CSS named colors (keyword gainsboro) with the hex code #DCDCDC — RGB 220, 220, 220, HSL 0°, 0%, 86%.

Open in Afoli Colour tools →

#DCDCDCGainsboro

Color codes

HEX
#DCDCDC
RGB
rgb(220, 220, 220)
HSL
hsl(0, 0%, 86%)
CMYK
0%, 0%, 0%, 14%
OKLCH
oklch(89.4% 0 0)
CSS keyword
gainsboro

Tints and shades

#F5F5F5#DADADA#BFBFBF#A6A6A6#8D8D8D#747474#5D5D5D#464646#313131#1D1D1D#0B0B0B

Color harmonies

Complementary
#DCDCDC#DCDCDC
Analogous
#DCDCDC#DCDCDC#DCDCDC
Triadic
#DCDCDC#DCDCDC#DCDCDC
Split complementary
#DCDCDC#DCDCDC#DCDCDC
Tetradic
#DCDCDC#DCDCDC#DCDCDC#DCDCDC

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Gainsboro text on white1.37 : 118Fails for text
Gainsboro text on black15.31 : 1-85AAA — any text
White text on Gainsboro1.37 : 1-21Fails for text
Black text on Gainsboro15.31 : 186AAA — any text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Gainsboro?

Gainsboro has the hex code #DCDCDC, which is RGB 220, 220, 220 and HSL 0°, 0%, 86%.

Which text color reads best on Gainsboro?

Black text: contrast 15.31 : 1 (white text: 1.37 : 1).

Which colors go well with Gainsboro?

Its complementary color is #DCDCDC; analogous colors are #DCDCDC and #DCDCDC; a triadic set adds #DCDCDC and #DCDCDC.

Similar colors

Sources and licences

Updated November 21, 2026