Gainsboro
#DCDCDCAbout Gainsboro
Gainsboro is the hex color #DCDCDC, which translates to rgb(220, 220, 220) in RGB and hsl(0, 0%, 86%) in HSL. On the color wheel it sits at 0 degrees, with a saturation of 0 percent and a lightness of 86 percent. With almost no saturation left, Gainsboro behaves as a near neutral: it sits under other colors rather than competing with them.
How Gainsboro compares
Gainsboro is exactly the CSS keyword gainsboro, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is neutral-300 (#D4D4D4), at a distance of 2.9. Inside this library the closest neighbour is Platinum at 3.0. Sorted by lightness, Gainsboro is number 21 of the 37 neutral colors here.
Text on Gainsboro
2 of the five common text colors below clear WCAG AA for normal text on Gainsboro, led by Ink black at 13.95:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Gainsboro already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 1.37:1 | Fail | Fail | Fail |
| Ink black #0F0F12 | 13.95:1 | Pass | Pass | Pass |
| Mid grey #6B7280 | 3.53:1 | Fail | Pass | Fail |
| Dark grey #374151 | 7.52:1 | Pass | Pass | Pass |
| Light grey #E5E7EB | 1.11:1 | Fail | Fail | Fail |
Building a palette around Gainsboro
The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Gainsboro for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color.
Full values for Gainsboro
| Format | Value |
|---|---|
| HEX | #DCDCDC |
| RGB | rgb(220, 220, 220) |
| HSL | hsl(0, 0%, 86%) |
| HSV | hsv(0, 0%, 86%) |
| CMYK | cmyk(0%, 0%, 0%, 14%) |
| OKLCH | oklch(89.45% 0.0000 0.00) |
| CIELAB | lab(87.76 0.00 0.00) |
Use Gainsboro in a tool
Nearby colors
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.