#DCD172#DCD172
#DCD172 is a very light, moderate yellow. Relative luminance 0.620; OKLCH L 85.0% C 0.118 H 102.7°. Best body text is #000000 at 13.41:1 contrast (WCAG AA passes).
Color values
| HEX | #DCD172 |
|---|---|
| RGB | rgb(220, 209, 114) |
| HSL | hsl(54, 60%, 65%) |
| HSV | hsv(54, 48%, 86%) |
| CMYK | cmyk(0%, 5%, 48.2%, 13.7%) |
| CIE-LAB | lab(82.93, -8.88, 48.14) |
| CIE-LCH | lch(82.93, 48.96, 100.45°) |
| OKLab | oklab(84.98% -0.0258 0.1147) |
| OKLCH | oklch(84.98% 0.118 102.7) |
| XYZ | xyz(55.3544, 62.0332, 24.9741) |
| Luminance | 0.6203 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 4.21
Sand (survey)
#E2CA76
ΔE00 4.31
Khaki (CSS)
#F0E68C
ΔE00 4.91
Dull Yellow
#EEDC5B
ΔE00 5.35
Greenish Beige
#C9D179
ΔE00 5.38
Wheat (survey)
#FBDD7E
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#DCD172 #727DDC
analogous
#DC9C72 #DCD172 #B2DC72
triadic
#DCD172 #72DCD1 #D172DC
tetradic
#DCD172 #72DC9C #727DDC #DC72B2
square
#DCD172 #72DC9C #727DDC #DC72B2
split-complementary
#DCD172 #72B2DC #9C72DC
monochromatic
#AA9C2A #D0C141 #DCD172 #E8E1A3 #F4F1D4
Accessibility & contrast
On white
1.57
#DCD172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.41
#DCD172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #DCD172
13.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##DCD172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##DCD172 | 1.00 | 1.57 | 13.41 | 13.41 |
| #FFFFFF | 1.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E0CB6A
Deuteranopia (green-blind)
#E4D176
Tritanopia (blue-blind)
#EAC6BB
Achromatopsia (no color)
#CECECE
Design tokens & code
CSS
--color: #dcd172; /* rgb */ color: rgb(220, 209, 114); /* oklch */ color: oklch(85.0% 0.118 102.7);
Tailwind
colors: {
custom: {
50: '#e9de9c',
500: '#dcd172',
950: '#000000',
},
}SCSS
$custom: #dcd172; $custom-light: #e9de9c; $custom-dark: #000000;
JSON
{
"hex": "#dcd172",
"rgb": {
"r": 220,
"g": 209,
"b": 114
},
"hsl": {
"h": 53.774,
"s": 60.227,
"l": 65.49
},
"oklch": {
"l": 0.84978,
"c": 0.11758,
"h": 102.7
},
"luminance": 0.62031
}Semantic roles & 50–950 ramp
primary
#DCD172
secondary
#4651AC
accent
#2FC81E
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F