Gainsboro colour (#DCDCDC)
Gainsboro is very light a neutral grey with hex code #DCDCDC, one of the 148 named colours every browser understands, so you can write color: ${name} directly in CSS. In RGB it is 220, 220, 220; in HSL 0°, 0%, 86%. Use the tool to explore shades and harmonies.
How to use the Gainsboro colour
- The colour is pre-filled; click Explore to see all formats, shades and harmonies.
- Edit the value to try a variation.
- Copy the code you need.
Gainsboro in every format
| Format | Value |
|---|---|
| HEX | #DCDCDC |
| RGB | rgb(220, 220, 220) |
| RGB (0–1) | 0.863, 0.863, 0.863 |
| HSL | hsl(0, 0%, 86%) |
| CMYK (approx.) | 0%, 0%, 0%, 14% |
| CSS | color: gainsboro; |
Shades and tints of Gainsboro
Same hue and saturation, lightness from 90% to 10%:
#e6e6e6 | #cccccc | #b3b3b3 | #999999 | #808080 | #666666 | #4d4d4d | #333333 | #1a1a1a |
Colours that go with Gainsboro
| Harmony | Colours | |
|---|---|---|
| Complementary | #dbdbdb | |
| Triadic | #dbdbdb | #dbdbdb |
| Analogous | #dbdbdb | #dbdbdb |
Similar named colours
The closest CSS named colours by RGB distance, useful when you need a keyword instead of a hex code or want a near match:
| Colour | HEX | Difference |
|---|---|---|
| lightgray | #d3d3d3 | very close |
| thistle | #d8bfd8 | very close |
| lavender | #e6e6fa | close |
| antiquewhite | #faebd7 | close |
| beige | #f5f5dc | close |
Accessibility
Contrast ratio of Gainsboro against white is 1.37:1 (fails WCAG AA for normal text) and against black 15.31:1 (passes). Use black or very dark text on a Gainsboro background rather than white.
Frequently asked questions
What is the hex code for Gainsboro?
#DCDCDC.
What is Gainsboro in RGB?
rgb(220, 220, 220).
What colour is complementary to Gainsboro?
#dbdbdb, directly opposite on the colour wheel.
Privacy
This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.
Last updated 2026-09-23.