#D9C152#D9C152
#D9C152 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.132 H 97.1°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #D9C152 |
|---|---|
| RGB | rgb(217, 193, 82) |
| HSL | hsl(49, 64%, 59%) |
| HSV | hsv(49, 62%, 85%) |
| CMYK | cmyk(0%, 11.1%, 62.2%, 14.9%) |
| CIE-LAB | lab(78.17, -4.42, 57.45) |
| CIE-LCH | lch(78.17, 57.62, 94.40°) |
| OKLab | oklab(81.03% -0.0164 0.1315) |
| OKLCH | oklch(81.03% 0.132 97.1) |
| XYZ | xyz(49.2103, 53.5031, 15.7161) |
| Luminance | 0.5350 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.62
Mustard Yellow
#D2BD0A
ΔE00 5.12
Maize
#F4D054
ΔE00 5.28
Mustard
#DBB42C
ΔE00 5.37
Dark Yellow
#D5B60A
ΔE00 5.38
Mustard (survey)
#CEB301
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D9C152 #526AD9
analogous
#D97D52 #D9C152 #ADD952
triadic
#D9C152 #52D9C1 #C152D9
tetradic
#D9C152 #52D97D #526AD9 #D952AD
square
#D9C152 #52D97D #526AD9 #D952AD
split-complementary
#D9C152 #52ADD9 #7D52D9
monochromatic
#917D20 #C3A82B #D9C152 #E4D384 #EFE5B6
Accessibility & contrast
On white
1.79
#D9C152 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.70
#D9C152 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D9C152
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D9C152 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D9C152 | 1.00 | 1.79 | 11.70 | 11.70 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D3BD46
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#E9B4A9
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #d9c152; /* rgb */ color: rgb(217, 193, 82); /* oklch */ color: oklch(81.0% 0.132 97.1);
Tailwind
colors: {
custom: {
50: '#e8d387',
500: '#d9c152',
950: '#000000',
},
}SCSS
$custom: #d9c152; $custom-light: #e8d387; $custom-dark: #000000;
JSON
{
"hex": "#d9c152",
"rgb": {
"r": 217,
"g": 193,
"b": 82
},
"hsl": {
"h": 49.333,
"s": 63.981,
"l": 58.627
},
"oklch": {
"l": 0.81034,
"c": 0.13247,
"h": 97.1
},
"luminance": 0.53501
}Semantic roles & 50–950 ramp
primary
#D9C152
secondary
#394A96
accent
#5EE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F