#D8A42F#D8A42F
#D8A42F is a light, vivid orange. Relative luminance 0.414; OKLCH L 74.8% C 0.140 H 82.9°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #D8A42F |
|---|---|
| RGB | rgb(216, 164, 47) |
| HSL | hsl(42, 68%, 52%) |
| HSV | hsv(42, 78%, 85%) |
| CMYK | cmyk(0%, 24.1%, 78.2%, 15.3%) |
| CIE-LAB | lab(70.43, 8.64, 63.69) |
| CIE-LCH | lch(70.43, 64.27, 82.27°) |
| OKLab | oklab(74.82% 0.0172 0.1385) |
| OKLCH | oklch(74.82% 0.14 82.9) |
| XYZ | xyz(42.1103, 41.3582, 8.4538) |
| Luminance | 0.4135 (WCAG relative) |
| Temperature | warm |
| Family | orange |
Closest named colors
Goldenrod
#DAA520
ΔE00 1.38
Yellow Ochre
#CB9D06
ΔE00 3.72
Ocre
#C69C04
ΔE00 4.74
Burnt Yellow
#D5AB09
ΔE00 4.85
Macaroni And Cheese
#EFB435
ΔE00 4.94
Squash
#F2AB15
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8A42F #2F63D8
analogous
#D8502F #D8A42F #B8D82F
triadic
#D8A42F #2FD8A4 #A42FD8
tetradic
#D8A42F #2FD850 #2F63D8 #D82FB8
square
#D8A42F #2FD850 #2F63D8 #D82FB8
split-complementary
#D8A42F #2FB8D8 #502FD8
monochromatic
#765916 #AA7F20 #D8A42F #E2BB63 #EBD196
Accessibility & contrast
On white
2.27
#D8A42F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.27
#D8A42F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8A42F
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8A42F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8A42F | 1.00 | 2.27 | 9.27 | 9.27 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA418
Deuteranopia (green-blind)
#C6B235
Tritanopia (blue-blind)
#EB948E
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #d8a42f; /* rgb */ color: rgb(216, 164, 47); /* oklch */ color: oklch(74.8% 0.140 82.9);
Tailwind
colors: {
custom: {
50: '#e9be71',
500: '#d8a42f',
950: '#000000',
},
}SCSS
$custom: #d8a42f; $custom-light: #e9be71; $custom-dark: #000000;
JSON
{
"hex": "#d8a42f",
"rgb": {
"r": 216,
"g": 164,
"b": 47
},
"hsl": {
"h": 41.538,
"s": 68.421,
"l": 51.569
},
"oklch": {
"l": 0.74824,
"c": 0.13954,
"h": 82.9
},
"luminance": 0.41355
}Semantic roles & 50–950 ramp
primary
#D8A42F
secondary
#8CA3D7
accent
#72EB3D
background
#FFFBF7
surface
#FEF6ED
border
#D6D0C8
text
#171208
muted
#85817B