#D3D3D3
lightgray
#D3D3D3 is a grey colour. In RGB it is 211 red, 211 green and 211 blue, which converts to a hue of 0 degrees, 0% saturation and 83% lightness. It is one of the named CSS colours, written as lightgray in stylesheets.
Color values
| HEX | #D3D3D3 |
|---|---|
| RGB | rgb(211, 211, 211) |
| HSL | hsl(0, 0%, 83%) |
| HSV | hsv(0, 0%, 83%) |
| CMYK | cmyk(0%, 0%, 0%, 17%) |
Contrast and accessibility
Against white the contrast ratio is 1.5:1, and against black it is 14.03: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.5:1 | Fail | Fail |
| Black | 14.03:1 | AAA | AAA |
Tints and shades
Lighter tints move #D3D3D3 toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #D3D3D3; |
|---|---|
| CSS rgb() | color: rgb(211 211 211); |
| Tailwind | bg-[#d3d3d3] |
| SwiftUI | Color(red: 0.827, green: 0.827, blue: 0.827) |
| Android | Color.parseColor("#D3D3D3") |