CSS named color
Gainsboro Color Code
Gainsboro is a very light gray with the hex code #DCDCDC. In RGB it is rgb(220, 220, 220), in HSL hsl(0, 0%, 86%) and in CMYK cmyk(0%, 0%, 0%, 14%).
Color values
In CSS you can write it as the keyword gainsboro.
White text on Gainsboro has a contrast ratio of 1.37:1 and black text 15.31:1, so black text is the more readable choice.
The closest Tailwind CSS color is Neutral 300 (#D4D4D4).
Use Gainsboro in CSS
.element {
color: gainsboro;
background-color: #dcdcdc;
border-color: rgb(220, 220, 220);
} Tints and shades of Gainsboro
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with Gainsboro
Color-wheel harmonies built from #DCDCDC. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on Gainsboro
Colors similar to Gainsboro
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about Gainsboro
What is the hex code for Gainsboro?
The hex code for Gainsboro is #DCDCDC. Its RGB value is rgb(220, 220, 220) and its HSL value is hsl(0, 0%, 86%).
What colors go with Gainsboro?
The complementary color of Gainsboro is #DBDBDB. For a softer scheme try the analogous colors #DBDBDB and #DBDBDB; for a balanced three-color scheme use the triadic colors #DBDBDB and #DBDBDB.
Is Gainsboro readable as a text color?
On a white background Gainsboro has a contrast ratio of 1.37:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 15.31:1.