#D4AF38#D4AF38
#D4AF38 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.7% C 0.138 H 91.0°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).
Color values
| HEX | #D4AF38 |
|---|---|
| RGB | rgb(212, 175, 56) |
| HSL | hsl(46, 64%, 53%) |
| HSV | hsv(46, 74%, 83%) |
| CMYK | cmyk(0%, 17.5%, 73.6%, 16.9%) |
| CIE-LAB | lab(72.86, 1.42, 62.54) |
| CIE-LCH | lch(72.86, 62.56, 88.69°) |
| OKLab | oklab(76.66% -0.0023 0.1381) |
| OKLCH | oklch(76.66% 0.138 91) |
| XYZ | xyz(43.1976, 44.9452, 10.1406) |
| Luminance | 0.4494 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 2.10
Burnt Yellow
#D5AB09
ΔE00 2.90
Gold (survey)
#DBB40C
ΔE00 3.49
Dark Yellow
#D5B60A
ΔE00 4.31
Mustard (survey)
#CEB301
ΔE00 4.69
Goldenrod
#DAA520
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D4AF38 #385DD4
analogous
#D46138 #D4AF38 #ABD438
triadic
#D4AF38 #38D4AF #AF38D4
tetradic
#D4AF38 #38D461 #385DD4 #D438AB
square
#D4AF38 #38D461 #385DD4 #D438AB
split-complementary
#D4AF38 #38ABD4 #6138D4
monochromatic
#78611A #AA8A25 #D4AF38 #DFC36A #EAD79D
Accessibility & contrast
On white
2.10
#D4AF38 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.99
#D4AF38 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D4AF38
9.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D4AF38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D4AF38 | 1.00 | 2.10 | 9.99 | 9.99 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD25
Deuteranopia (green-blind)
#CCB73F
Tritanopia (blue-blind)
#E5A097
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #d4af38; /* rgb */ color: rgb(212, 175, 56); /* oklch */ color: oklch(76.7% 0.138 91.0);
Tailwind
colors: {
custom: {
50: '#e5c676',
500: '#d4af38',
950: '#000000',
},
}SCSS
$custom: #d4af38; $custom-light: #e5c676; $custom-dark: #000000;
JSON
{
"hex": "#d4af38",
"rgb": {
"r": 212,
"g": 175,
"b": 56
},
"hsl": {
"h": 45.769,
"s": 64.463,
"l": 52.549
},
"oklch": {
"l": 0.7666,
"c": 0.13808,
"h": 91
},
"luminance": 0.44943
}Semantic roles & 50–950 ramp
primary
#D4AF38
secondary
#92A2D6
accent
#68E740
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B