#D9B42E#D9B42E
#D9B42E is a light, vivid yellow. Relative luminance 0.476; OKLCH L 78.1% C 0.147 H 92.4°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #D9B42E |
|---|---|
| RGB | rgb(217, 180, 46) |
| HSL | hsl(47, 69%, 52%) |
| HSV | hsv(47, 79%, 85%) |
| CMYK | cmyk(0%, 17.1%, 78.8%, 14.9%) |
| CIE-LAB | lab(74.57, 0.56, 67.83) |
| CIE-LCH | lch(74.57, 67.83, 89.53°) |
| OKLab | oklab(78.11% -0.0061 0.1471) |
| OKLCH | oklch(78.11% 0.147 92.4) |
| XYZ | xyz(45.4323, 47.5943, 9.3779) |
| Luminance | 0.4759 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 0.55
Gold (survey)
#DBB40C
ΔE00 1.84
Dark Yellow
#D5B60A
ΔE00 2.76
Burnt Yellow
#D5AB09
ΔE00 2.80
Mustard (survey)
#CEB301
ΔE00 3.62
Brownish Yellow
#C9B003
ΔE00 4.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D9B42E #2E53D9
analogous
#D95F2E #D9B42E #A8D92E
triadic
#D9B42E #2ED9B4 #B42ED9
tetradic
#D9B42E #2ED95F #2E53D9 #D92EA8
square
#D9B42E #2ED95F #2E53D9 #D92EA8
split-complementary
#D9B42E #2EA8D9 #5F2ED9
monochromatic
#776216 #AB8D1F #D9B42E #E2C762 #ECD996
Accessibility & contrast
On white
2.00
#D9B42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.52
#D9B42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D9B42E
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D9B42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D9B42E | 1.00 | 2.00 | 10.52 | 10.52 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B10D
Deuteranopia (green-blind)
#D2BC37
Tritanopia (blue-blind)
#EBA59B
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #d9b42e; /* rgb */ color: rgb(217, 180, 46); /* oklch */ color: oklch(78.1% 0.147 92.4);
Tailwind
colors: {
custom: {
50: '#e9ca72',
500: '#d9b42e',
950: '#000000',
},
}SCSS
$custom: #d9b42e; $custom-light: #e9ca72; $custom-dark: #000000;
JSON
{
"hex": "#d9b42e",
"rgb": {
"r": 217,
"g": 180,
"b": 46
},
"hsl": {
"h": 47.018,
"s": 69.231,
"l": 51.569
},
"oklch": {
"l": 0.78106,
"c": 0.14724,
"h": 92.4
},
"luminance": 0.47591
}Semantic roles & 50–950 ramp
primary
#D9B42E
secondary
#8C9CD7
accent
#62EC3C
background
#FFFCF7
surface
#FEF8ED
border
#D6D1C8
text
#171309
muted
#85827B