#D2AF42#D2AF42
#D2AF42 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.5% C 0.131 H 90.9°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #D2AF42 |
|---|---|
| RGB | rgb(210, 175, 66) |
| HSL | hsl(45, 62%, 54%) |
| HSV | hsv(45, 69%, 82%) |
| CMYK | cmyk(0%, 16.7%, 68.6%, 17.6%) |
| CIE-LAB | lab(72.73, 1.06, 58.36) |
| CIE-LCH | lch(72.73, 58.37, 88.96°) |
| OKLab | oklab(76.54% -0.0021 0.1311) |
| OKLCH | oklch(76.54% 0.131 90.9) |
| XYZ | xyz(42.8940, 44.7574, 11.5330) |
| Luminance | 0.4476 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.07
Burnt Yellow
#D5AB09
ΔE00 3.98
Gold (survey)
#DBB40C
ΔE00 4.54
Desert
#CCAD60
ΔE00 4.64
Dark Yellow
#D5B60A
ΔE00 5.09
Goldenrod
#DAA520
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2AF42 #4265D2
analogous
#D26742 #D2AF42 #ADD242
triadic
#D2AF42 #42D2AF #AF42D2
tetradic
#D2AF42 #42D267 #4265D2 #D242AD
square
#D2AF42 #42D267 #4265D2 #D242AD
split-complementary
#D2AF42 #42ADD2 #6742D2
monochromatic
#7C651E #AD8D29 #D2AF42 #DEC473 #EAD9A5
Accessibility & contrast
On white
2.11
#D2AF42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.95
#D2AF42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2AF42
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2AF42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2AF42 | 1.00 | 2.11 | 9.95 | 9.95 |
| #FFFFFF | 2.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#CAB747
Tritanopia (blue-blind)
#E3A198
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #d2af42; /* rgb */ color: rgb(210, 175, 66); /* oklch */ color: oklch(76.5% 0.131 90.9);
Tailwind
colors: {
custom: {
50: '#e4c67c',
500: '#d2af42',
950: '#000000',
},
}SCSS
$custom: #d2af42; $custom-light: #e4c67c; $custom-dark: #000000;
JSON
{
"hex": "#d2af42",
"rgb": {
"r": 210,
"g": 175,
"b": 66
},
"hsl": {
"h": 45.417,
"s": 61.538,
"l": 54.118
},
"oklch": {
"l": 0.7654,
"c": 0.13112,
"h": 90.9
},
"luminance": 0.44755
}Semantic roles & 50–950 ramp
primary
#D2AF42
secondary
#99A8D7
accent
#6AE543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C