#D2AF40#D2AF40
#D2AF40 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.5% C 0.133 H 91.2°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #D2AF40 |
|---|---|
| RGB | rgb(210, 175, 64) |
| HSL | hsl(46, 62%, 54%) |
| HSV | hsv(46, 70%, 82%) |
| CMYK | cmyk(0%, 16.7%, 69.5%, 17.6%) |
| CIE-LAB | lab(72.72, 0.95, 59.17) |
| CIE-LCH | lch(72.72, 59.18, 89.08°) |
| OKLab | oklab(76.52% -0.0027 0.1325) |
| OKLCH | oklch(76.52% 0.133 91.2) |
| XYZ | xyz(42.8360, 44.7343, 11.2278) |
| Luminance | 0.4473 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 2.89
Burnt Yellow
#D5AB09
ΔE00 3.79
Gold (survey)
#DBB40C
ΔE00 4.32
Desert
#CCAD60
ΔE00 4.87
Dark Yellow
#D5B60A
ΔE00 4.87
Mustard (survey)
#CEB301
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2AF40 #4063D2
analogous
#D26640 #D2AF40 #ACD240
triadic
#D2AF40 #40D2AF #AF40D2
tetradic
#D2AF40 #40D266 #4063D2 #D240AC
square
#D2AF40 #40D266 #4063D2 #D240AC
split-complementary
#D2AF40 #40ACD2 #6640D2
monochromatic
#7B641D #AC8D29 #D2AF40 #DEC472 #E9D8A3
Accessibility & contrast
On white
2.11
#D2AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.95
#D2AF40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2AF40
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2AF40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2AF40 | 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)
#C2AD31
Deuteranopia (green-blind)
#CBB746
Tritanopia (blue-blind)
#E3A198
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #d2af40; /* rgb */ color: rgb(210, 175, 64); /* oklch */ color: oklch(76.5% 0.133 91.2);
Tailwind
colors: {
custom: {
50: '#e4c67b',
500: '#d2af40',
950: '#000000',
},
}SCSS
$custom: #d2af40; $custom-light: #e4c67b; $custom-dark: #000000;
JSON
{
"hex": "#d2af40",
"rgb": {
"r": 210,
"g": 175,
"b": 64
},
"hsl": {
"h": 45.616,
"s": 61.864,
"l": 53.725
},
"oklch": {
"l": 0.76523,
"c": 0.13251,
"h": 91.2
},
"luminance": 0.44732
}Semantic roles & 50–950 ramp
primary
#D2AF40
secondary
#98A7D6
accent
#6AE543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C