Gainsboro #DCDCDC
Gainsboro is one of the named colours in CSS, written gainsboro. Black text reaches 15.31:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | gainsboro |
|---|---|
| HEX | #DCDCDC |
| RGB | rgb(220 220 220) |
| HSL | hsl(0 0% 86%) |
| OKLCH | oklch(89.4% 0.000 0) |
| White text | 1.37:1 · body text AA Fail |
| Black text | 15.31:1 · body text AA Pass |
Colours that go with Gainsboro
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Nile Blue (#BCE4E5), close. These are the colours Wada paired it with, ranked by their contrast with Gainsboro itself.
| Colour | HEX | Contrast with Gainsboro | Body text AA |
|---|---|---|---|
| Deep Slate Olive | #253122 | 9.94:1 | Pass |
| Hay's Russet | #793327 | 6.61:1 | Pass |
| Blue Violet | #6450A1 | 4.78:1 | Pass |
| Antwarp Blue | #007190 | 4.07:1 | Fail |
| Etruscan Red | #C55347 | 3.26:1 | Fail |
| Dull Viridian Green | #009465 | 2.82:1 | Fail |
| Raw Sienna | #BB7125 | 2.78:1 | Fail |
| Green Blue | #099197 | 2.78:1 | Fail |
| Benzol Green | #00978D | 2.64:1 | Fail |
| Peach Red | #F15A30 | 2.45:1 | Fail |
| Light Brown Drab | #B59392 | 2.03:1 | Fail |
| Sea Green | #00B49B | 1.91:1 | Fail |
| Salvia Blue | #97ACC8 | 1.69:1 | Fail |
| Ecru | #C2AE93 | 1.57:1 | Fail |
| Pyrite Yellow | #CAB356 | 1.52:1 | Fail |
| Venice Green | #62C6BF | 1.48:1 | Fail |
| Olive Buff | #C1C494 | 1.32:1 | Fail |
| Cream Yellow | #FDBF68 | 1.19:1 | Fail |
| Lemon Yellow | #F8ED43 | 1.12:1 | Fail |
Palettes with Nile Blue
- Combination #25 Etruscan Red · Nile Blue
- Combination #250 Pyrite Yellow · Peach Red · Sea Green · Nile Blue
- Combination #268 Light Brown Drab · Raw Sienna · Deep Slate Olive · Nile Blue
- Combination #302 Cream Yellow · Ecru · Nile Blue · Antwarp Blue
- Combination #306 Lemon Yellow · Benzol Green · Dull Viridian Green · Nile Blue
- Combination #330 Olive Buff · Nile Blue · Salvia Blue · Green Blue
- Combination #345 Hay's Russet · Nile Blue · Venice Green · Blue Violet
Shades and tints of Gainsboro
Nine lightness steps in OKLCH that keep the hue of Gainsboro. Chroma is reduced only where sRGB cannot show it.
- 100#F5F5F5
- 200#E4E4E4
- 300#CECECE
- 400#B1B1B1
- 500#929292
- 600#717171
- 700#555555
- 800#3A3A3A
- 900#222222
:root {
--gainsboro-100: #F5F5F5;
--gainsboro-200: #E4E4E4;
--gainsboro-300: #CECECE;
--gainsboro-400: #B1B1B1;
--gainsboro-500: #929292;
--gainsboro-600: #717171;
--gainsboro-700: #555555;
--gainsboro-800: #3A3A3A;
--gainsboro-900: #222222;
}
Text that keeps Gainsboro on screen
Text #222222 on #DCDCDC reaches 11.60:1, which passes WCAG AA for body text. Check it on a dashboard