#DCDCDC
gainsboro
#DCDCDC is a grey colour. In RGB it is 220 red, 220 green and 220 blue, which converts to a hue of 0 degrees, 0% saturation and 86% lightness. It is one of the named CSS colours, written as gainsboro in stylesheets.
Color values
| HEX | #DCDCDC |
|---|---|
| RGB | rgb(220, 220, 220) |
| HSL | hsl(0, 0%, 86%) |
| HSV | hsv(0, 0%, 86%) |
| CMYK | cmyk(0%, 0%, 0%, 14%) |
Contrast and accessibility
Against white the contrast ratio is 1.37:1, and against black it is 15.31:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 1.37:1 | Fail | Fail |
| Black | 15.31:1 | AAA | AAA |
Tints and shades
Lighter tints move #DCDCDC toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #DCDCDC; |
|---|---|
| CSS rgb() | color: rgb(220 220 220); |
| Tailwind | bg-[#dcdcdc] |
| SwiftUI | Color(red: 0.863, green: 0.863, blue: 0.863) |
| Android | Color.parseColor("#DCDCDC") |