#D8C552#D8C552
#D8C552 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.8% C 0.136 H 99.9°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C552 |
|---|---|
| RGB | rgb(216, 197, 82) |
| HSL | hsl(51, 63%, 58%) |
| HSV | hsv(51, 62%, 85%) |
| CMYK | cmyk(0%, 8.8%, 62%, 15.3%) |
| CIE-LAB | lab(79.12, -6.90, 58.46) |
| CIE-LCH | lch(79.12, 58.87, 96.73°) |
| OKLab | oklab(81.77% -0.0234 0.1336) |
| OKLCH | oklch(81.77% 0.136 99.9) |
| XYZ | xyz(49.8102, 55.1428, 16.0009) |
| Luminance | 0.5514 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Yellow
#D2BD0A
ΔE00 4.96
Sand (survey)
#E2CA76
ΔE00 5.02
Ugly Yellow
#D0C101
ΔE00 5.16
Dirty Yellow
#CDC50A
ΔE00 5.56
Dull Yellow
#EEDC5B
ΔE00 5.57
Maize
#F4D054
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C552 #5265D8
analogous
#D88252 #D8C552 #A8D852
triadic
#D8C552 #52D8C5 #C552D8
tetradic
#D8C552 #52D882 #5265D8 #D852A8
square
#D8C552 #52D882 #5265D8 #D852A8
split-complementary
#D8C552 #52A8D8 #8252D8
monochromatic
#8F8020 #C1AC2C #D8C552 #E3D684 #EFE6B6
Accessibility & contrast
On white
1.75
#D8C552 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.03
#D8C552 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C552
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C552 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C552 | 1.00 | 1.75 | 12.03 | 12.03 |
| #FFFFFF | 1.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C045
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E8B8AC
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #d8c552; /* rgb */ color: rgb(216, 197, 82); /* oklch */ color: oklch(81.8% 0.136 99.9);
Tailwind
colors: {
custom: {
50: '#e7d687',
500: '#d8c552',
950: '#000000',
},
}SCSS
$custom: #d8c552; $custom-light: #e7d687; $custom-dark: #000000;
JSON
{
"hex": "#d8c552",
"rgb": {
"r": 216,
"g": 197,
"b": 82
},
"hsl": {
"h": 51.493,
"s": 63.208,
"l": 58.431
},
"oklch": {
"l": 0.81768,
"c": 0.13567,
"h": 99.9
},
"luminance": 0.55141
}Semantic roles & 50–950 ramp
primary
#D8C552
secondary
#394695
accent
#59E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F