#D2AF38#D2AF38
#D2AF38 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.5% C 0.138 H 92.0°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #D2AF38 |
|---|---|
| RGB | rgb(210, 175, 56) |
| HSL | hsl(46, 63%, 52%) |
| HSV | hsv(46, 73%, 82%) |
| CMYK | cmyk(0%, 16.7%, 73.3%, 17.6%) |
| CIE-LAB | lab(72.66, 0.56, 62.29) |
| CIE-LCH | lch(72.66, 62.29, 89.49°) |
| OKLab | oklab(76.46% -0.0047 0.1376) |
| OKLCH | oklch(76.46% 0.138 92) |
| XYZ | xyz(42.6245, 44.6497, 10.1138) |
| Luminance | 0.4465 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 2.29
Burnt Yellow
#D5AB09
ΔE00 3.10
Gold (survey)
#DBB40C
ΔE00 3.56
Dark Yellow
#D5B60A
ΔE00 4.08
Mustard (survey)
#CEB301
ΔE00 4.33
Brownish Yellow
#C9B003
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2AF38 #385BD2
analogous
#D26238 #D2AF38 #A8D238
triadic
#D2AF38 #38D2AF #AF38D2
tetradic
#D2AF38 #38D262 #385BD2 #D238A8
square
#D2AF38 #38D262 #385BD2 #D238A8
split-complementary
#D2AF38 #38A8D2 #6238D2
monochromatic
#75611A #A78A26 #D2AF38 #DDC36A #E9D79C
Accessibility & contrast
On white
2.11
#D2AF38 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.93
#D2AF38 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2AF38
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2AF38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2AF38 | 1.00 | 2.11 | 9.93 | 9.93 |
| #FFFFFF | 2.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AC25
Deuteranopia (green-blind)
#CBB73F
Tritanopia (blue-blind)
#E3A197
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #d2af38; /* rgb */ color: rgb(210, 175, 56); /* oklch */ color: oklch(76.5% 0.138 92.0);
Tailwind
colors: {
custom: {
50: '#e4c676',
500: '#d2af38',
950: '#000000',
},
}SCSS
$custom: #d2af38; $custom-light: #e4c676; $custom-dark: #000000;
JSON
{
"hex": "#d2af38",
"rgb": {
"r": 210,
"g": 175,
"b": 56
},
"hsl": {
"h": 46.364,
"s": 63.115,
"l": 52.157
},
"oklch": {
"l": 0.76461,
"c": 0.13768,
"h": 92
},
"luminance": 0.44647
}Semantic roles & 50–950 ramp
primary
#D2AF38
secondary
#91A1D5
accent
#67E642
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B