#D1AF42#D1AF42
#D1AF42 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.4% C 0.131 H 91.4°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #D1AF42 |
|---|---|
| RGB | rgb(209, 175, 66) |
| HSL | hsl(46, 61%, 54%) |
| HSV | hsv(46, 68%, 82%) |
| CMYK | cmyk(0%, 16.3%, 68.4%, 18%) |
| CIE-LAB | lab(72.64, 0.63, 58.23) |
| CIE-LCH | lch(72.64, 58.23, 89.38°) |
| OKLab | oklab(76.44% -0.0033 0.1309) |
| OKLCH | oklch(76.44% 0.131 91.4) |
| XYZ | xyz(42.6101, 44.6111, 11.5197) |
| Luminance | 0.4461 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.16
Burnt Yellow
#D5AB09
ΔE00 4.08
Gold (survey)
#DBB40C
ΔE00 4.58
Desert
#CCAD60
ΔE00 4.64
Dark Yellow
#D5B60A
ΔE00 5.01
Mustard (survey)
#CEB301
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D1AF42 #4264D1
analogous
#D16842 #D1AF42 #ACD142
triadic
#D1AF42 #42D1AF #AF42D1
tetradic
#D1AF42 #42D168 #4264D1 #D142AC
square
#D1AF42 #42D168 #4264D1 #D142AC
split-complementary
#D1AF42 #42ACD1 #6842D1
monochromatic
#7B651E #AC8D2A #D1AF42 #DDC473 #E9D9A4
Accessibility & contrast
On white
2.12
#D1AF42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.92
#D1AF42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D1AF42
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D1AF42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D1AF42 | 1.00 | 2.12 | 9.92 | 9.92 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#CAB647
Tritanopia (blue-blind)
#E2A198
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #d1af42; /* rgb */ color: rgb(209, 175, 66); /* oklch */ color: oklch(76.4% 0.131 91.4);
Tailwind
colors: {
custom: {
50: '#e3c67c',
500: '#d1af42',
950: '#000000',
},
}SCSS
$custom: #d1af42; $custom-light: #e3c67c; $custom-dark: #000000;
JSON
{
"hex": "#d1af42",
"rgb": {
"r": 209,
"g": 175,
"b": 66
},
"hsl": {
"h": 45.734,
"s": 60.851,
"l": 53.922
},
"oklch": {
"l": 0.76441,
"c": 0.1309,
"h": 91.4
},
"luminance": 0.44609
}Semantic roles & 50–950 ramp
primary
#D1AF42
secondary
#99A7D6
accent
#6AE444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C