gainsboro

#DCDCDC · CSS color name

gainsboro is the CSS color name for #dcdcdc: RGB(220, 220, 220), HSL(0°, 0%, 86%), CMYK(0%, 0%, 0%, 14%). Contrast is 1.37:1 on white and 15.31:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#dcdcdc
CSS color namegainsboro
RGBrgb(220 220 220)
RGB (legacy)rgb(220, 220, 220)
RGB %rgb(86% 86% 86%)
HSLhsl(0 0% 86%)
HSV / HSBhsv(0, 0%, 86%)
HWBhwb(0 86% 14%)
CMYKcmyk(0%, 0%, 0%, 14%)
CIELAB (D50)lab(87.76 0 0)
LCHlch(87.76 0 0)
OKLaboklab(0.8945 0 0)
OKLCHoklch(0.8945 0 0)
Decimal14474460

Properties

Color ToneBlack, Gray, White
Closest named colorgainsboro ΔE 0
Closest web-safe color#cccccc
Hue0°
Saturation (HSL / HSV)0% / 0%
Lightness (HSL)86%
Brightness or Value (HSV)86%
Luminance (Rec.601 / Rec.709)86% / 86%
Relative luminance (WCAG)0.7157
Red / Green / Blue220 / 220 / 220

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.37:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
15.31:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 18.1 / -85.4 · As background with white / black text: Lc -20.8 / 85.5

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-gainsboro: #dcdcdc;
  --color-gainsboro-oklch: oklch(89.45% 0 0);
}
.text { color: var(--color-gainsboro); }
.background { background-color: var(--color-gainsboro); }
.border { border: 1px solid rgb(220 220 220 / 50%); }
/* Tailwind CSS */
<div class="bg-[#dcdcdc] text-[#dcdcdc] border-[#dcdcdc]">