#D8C052#D8C052
#D8C052 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.7% C 0.132 H 97.0°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C052 |
|---|---|
| RGB | rgb(216, 192, 82) |
| HSL | hsl(49, 63%, 58%) |
| HSV | hsv(49, 62%, 85%) |
| CMYK | cmyk(0%, 11.1%, 62%, 15.3%) |
| CIE-LAB | lab(77.82, -4.32, 57.04) |
| CIE-LCH | lch(77.82, 57.21, 94.33°) |
| OKLab | oklab(80.74% -0.016 0.1306) |
| OKLCH | oklch(80.74% 0.132 97) |
| XYZ | xyz(48.6936, 52.9097, 15.6287) |
| Luminance | 0.5291 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.66
Mustard Yellow
#D2BD0A
ΔE00 5.17
Mustard
#DBB42C
ΔE00 5.29
Dark Yellow
#D5B60A
ΔE00 5.35
Maize
#F4D054
ΔE00 5.50
Mustard (survey)
#CEB301
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C052 #526AD8
analogous
#D87D52 #D8C052 #ADD852
triadic
#D8C052 #52D8C0 #C052D8
tetradic
#D8C052 #52D87D #526AD8 #D852AD
square
#D8C052 #52D87D #526AD8 #D852AD
split-complementary
#D8C052 #52ADD8 #7D52D8
monochromatic
#8F7B20 #C1A62C #D8C052 #E3D284 #EFE4B6
Accessibility & contrast
On white
1.81
#D8C052 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.58
#D8C052 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C052
11.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C052 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C052 | 1.00 | 1.81 | 11.58 | 11.58 |
| #FFFFFF | 1.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E8B3A8
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #d8c052; /* rgb */ color: rgb(216, 192, 82); /* oklch */ color: oklch(80.7% 0.132 97.0);
Tailwind
colors: {
custom: {
50: '#e7d287',
500: '#d8c052',
950: '#000000',
},
}SCSS
$custom: #d8c052; $custom-light: #e7d287; $custom-dark: #000000;
JSON
{
"hex": "#d8c052",
"rgb": {
"r": 216,
"g": 192,
"b": 82
},
"hsl": {
"h": 49.254,
"s": 63.208,
"l": 58.431
},
"oklch": {
"l": 0.80736,
"c": 0.13159,
"h": 97
},
"luminance": 0.52907
}Semantic roles & 50–950 ramp
primary
#D8C052
secondary
#394A95
accent
#5FE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F