Gainsboro
gainsboro · #DCDCDC
HEX
#DCDCDC
RGB
rgb(220, 220, 220)
CMYK
cmyk(0%, 0%, 0%, 14%)
HSL
hsl(0, 0%, 86%)
LAB
lab(87.8, 0.0, 0.0)
What is Gainsboro?
Gainsboro is the gainsboro reference in the CSS Named Colors. Its sRGB value is #DCDCDC (rgb 220, 220, 220). It sits in the neutral family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.
Accessibility
WCAG 2.1 contrast checks for Gainsboro as a background.
Black text on this color
White text on this color
Shades, tints & tonal scale of Gainsboro
An 11-step tonal scale derived from Gainsboro (#DCDCDC). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.
50
#FCFCFC
#FCFCFC
100
#F9F9F9
#F9F9F9
200
#F4F4F4
#F4F4F4
300
#EEEEEE
#EEEEEE
400
#E5E5E5
#E5E5E5
500
#DCDCDC
#DCDCDC
600
#BBBBBB
#BBBBBB
700
#8F8F8F
#8F8F8F
800
#636363
#636363
900
#373737
#373737
950
#1A1A1A
#1A1A1A
Lighter tints (mixed with white)
15%
#E2E2E2
30%
#E7E7E7
45%
#EDEDED
60%
#F2F2F2
75%
#F7F7F7
Darker shades (mixed with black)
15%
#CDCDCD
30%
#BCBCBC
45%
#A8A8A8
60%
#929292
75%
#757575
Color harmonies for Gainsboro
Classic color-theory harmonies derived from rotating the hue of Gainsboro. Use these to build accent palettes, brand systems, and accessible UI color pairings.
Complementary
180° opposite — strongest contrast
#DCDCDC
#DCDCDC
#DBDBDB
#DBDBDB
Triadic
Three colors 120° apart
#DCDCDC
#DCDCDC
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
Analogous
Two neighbors ±30° on the wheel
#DBDBDB
#DBDBDB
#DCDCDC
#DCDCDC
#DBDBDB
#DBDBDB
Split-complementary
Base + two colors flanking its complement
#DCDCDC
#DCDCDC
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
Tetradic
Two complementary pairs
#DCDCDC
#DCDCDC
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
Square
Four colors evenly spaced 90° apart
#DCDCDC
#DCDCDC
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
#DBDBDB
Gainsboro in every color space
Full conversion of Gainsboro across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.
HEX
#DCDCDC
RGB
rgb(220, 220, 220)
CMYK
cmyk(0%, 0%, 0%, 14%)
HSL
hsl(0, 0%, 86%)
HSV
hsv(0, 0%, 86%)
HWB
hwb(0 86% 14%)
CIE Lab
lab(87.8 0.0 0.0)
OKLCH
oklch(89.4% 0.000 89.9)
XYZ (D65)
xyz(68.02, 71.57, 77.93)
Copy-ready code for Gainsboro
Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.
CSS
color: #DCDCDC;
background-color: #DCDCDC;CSS variable
:root {
--color-gainsboro: #DCDCDC;
}Tailwind config
// tailwind.config.js
colors: {
'gainsboro': '#DCDCDC',
}Sass
$color-gainsboro: #DCDCDC;Swift UIColor
UIColor(red: 0.863, green: 0.863, blue: 0.863, alpha: 1.0)Android XML
<color name="gainsboro">#DCDCDC</color>Closest match in every color system
The nearest Gainsboro equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.
Closest in CSS Named Colors
Top 6 ΔE2000-closest entries within the same collection.
Closest Pantone matches
Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.
Closest RAL Classic matches
Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.
RAL 7035
#D7D7D7
Light grey
RAL 9018
#D7D7D7
Papyrus white
RAL 9003
#F4F4F4
Signal white
RAL 9016
#F6F6F6
Traffic white
RAL 9010
#FFFFFF
Pure white
RAL 9002
#E7EBDA
Grey white
FAQ about Gainsboro
What is the HEX code for Gainsboro?
Gainsboro (gainsboro) has the HEX code #DCDCDC. In RGB it is rgb(220, 220, 220), and in CMYK it is cmyk(0%, 0%, 0%, 14%).
What is the OKLCH value of Gainsboro?
Gainsboro converts to oklch(0.894 0.000 89.9). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.
Is Gainsboro accessible for body text?
Used as a background, Gainsboro has a contrast ratio of 15.31:1 with black text and 1.37:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.
What is the closest Pantone to Gainsboro?
The closest Pantone reference to Gainsboro by ΔE2000 perceptual distance is Pantone Cool Gray 1 C (#D9D9D6). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.
What is the closest RAL color to Gainsboro?
The closest RAL Classic reference to Gainsboro by ΔE2000 distance is RAL 7035 (Light grey, #D7D7D7). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.
What is the complementary color of Gainsboro?
The complementary color (180° opposite on the HSL color wheel) of Gainsboro is #DBDBDB. Use it for high-contrast accents, error states, or call-to-action pairings.
Data provenance & source
CSS Named Colors (CSS Color Module Level 4)
The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.
- Source type
- derived
- Confidence
- high
- License
- W3C permissive document license
- Last reviewed
- 2026-05-24
Workflow tags
CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.