#D4AF40#D4AF40
#D4AF40 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.7% C 0.133 H 90.1°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).
Color values
| HEX | #D4AF40 |
|---|---|
| RGB | rgb(212, 175, 64) |
| HSL | hsl(45, 63%, 54%) |
| HSV | hsv(45, 70%, 83%) |
| CMYK | cmyk(0%, 17.5%, 69.8%, 16.9%) |
| CIE-LAB | lab(72.91, 1.81, 59.43) |
| CIE-LCH | lch(72.91, 59.46, 88.25°) |
| OKLab | oklab(76.72% -0.0003 0.133) |
| OKLCH | oklch(76.72% 0.133 90.1) |
| XYZ | xyz(43.4091, 45.0298, 11.2547) |
| Luminance | 0.4503 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 2.78
Burnt Yellow
#D5AB09
ΔE00 3.65
Gold (survey)
#DBB40C
ΔE00 4.29
Goldenrod
#DAA520
ΔE00 4.82
Desert
#CCAD60
ΔE00 4.91
Dark Yellow
#D5B60A
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D4AF40 #4065D4
analogous
#D46540 #D4AF40 #AFD440
triadic
#D4AF40 #40D4AF #AF40D4
tetradic
#D4AF40 #40D465 #4065D4 #D440AF
square
#D4AF40 #40D465 #4065D4 #D440AF
split-complementary
#D4AF40 #40AFD4 #6540D4
monochromatic
#7D651C #AF8D27 #D4AF40 #DFC472 #EAD9A4
Accessibility & contrast
On white
2.10
#D4AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.01
#D4AF40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D4AF40
10.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D4AF40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D4AF40 | 1.00 | 2.10 | 10.01 | 10.01 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#CBB745
Tritanopia (blue-blind)
#E5A198
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #d4af40; /* rgb */ color: rgb(212, 175, 64); /* oklch */ color: oklch(76.7% 0.133 90.1);
Tailwind
colors: {
custom: {
50: '#e5c67b',
500: '#d4af40',
950: '#000000',
},
}SCSS
$custom: #d4af40; $custom-light: #e5c67b; $custom-dark: #000000;
JSON
{
"hex": "#d4af40",
"rgb": {
"r": 212,
"g": 175,
"b": 64
},
"hsl": {
"h": 45,
"s": 63.248,
"l": 54.118
},
"oklch": {
"l": 0.76722,
"c": 0.13296,
"h": 90.1
},
"luminance": 0.45027
}Semantic roles & 50–950 ramp
primary
#D4AF40
secondary
#98A8D7
accent
#6BE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C