#D4D4D8
Tailwind zinc-300
#D4D4D8 is a grey colour. In RGB it is 212 red, 212 green and 216 blue, which converts to a hue of 240 degrees, 5% saturation and 84% lightness. It is Tailwind zinc-300 in that design system's palette.
Color values
| HEX | #D4D4D8 |
|---|---|
| RGB | rgb(212, 212, 216) |
| HSL | hsl(240, 5%, 84%) |
| HSV | hsv(240, 2%, 85%) |
| CMYK | cmyk(2%, 2%, 0%, 15%) |
Contrast and accessibility
Against white the contrast ratio is 1.48:1, and against black it is 14.21: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.48:1 | Fail | Fail |
| Black | 14.21:1 | AAA | AAA |
Tints and shades
Lighter tints move #D4D4D8 toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #D4D4D8; |
|---|---|
| CSS rgb() | color: rgb(212 212 216); |
| Tailwind | bg-[#d4d4d8] |
| SwiftUI | Color(red: 0.831, green: 0.831, blue: 0.847) |
| Android | Color.parseColor("#D4D4D8") |
Closest named color
The nearest CSS colour keyword to #D4D4D8 is lightgray (#D3D3D3).