#D8C64A#D8C64A
#D8C64A is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.143 H 101.0°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C64A |
|---|---|
| RGB | rgb(216, 198, 74) |
| HSL | hsl(52, 65%, 57%) |
| HSV | hsv(52, 66%, 85%) |
| CMYK | cmyk(0%, 8.3%, 65.7%, 15.3%) |
| CIE-LAB | lab(79.32, -7.90, 62.06) |
| CIE-LCH | lch(79.32, 62.56, 97.26°) |
| OKLab | oklab(81.9% -0.0272 0.1401) |
| OKLCH | oklch(81.9% 0.143 101) |
| XYZ | xyz(49.7511, 55.4836, 14.5660) |
| Luminance | 0.5548 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Yellow
#D0C101
ΔE00 4.24
Mustard Yellow
#D2BD0A
ΔE00 4.24
Dirty Yellow
#CDC50A
ΔE00 4.59
Vomit Yellow
#C7C10C
ΔE00 4.92
Dull Yellow
#EEDC5B
ΔE00 5.22
Puke Yellow
#C2BE0E
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C64A #4A5CD8
analogous
#D87F4A #D8C64A #A3D84A
triadic
#D8C64A #4AD8C6 #C64AD8
tetradic
#D8C64A #4AD87F #4A5CD8 #D84AA3
square
#D8C64A #4AD87F #4A5CD8 #D84AA3
split-complementary
#D8C64A #4AA3D8 #7F4AD8
monochromatic
#8A7C1E #BCAA29 #D8C64A #E3D67C #EEE6AF
Accessibility & contrast
On white
1.74
#D8C64A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.10
#D8C64A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C64A
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C64A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C64A | 1.00 | 1.74 | 12.10 | 12.10 |
| #FFFFFF | 1.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D8C03A
Deuteranopia (green-blind)
#DDC851
Tritanopia (blue-blind)
#E8B8AC
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #d8c64a; /* rgb */ color: rgb(216, 198, 74); /* oklch */ color: oklch(81.9% 0.143 101.0);
Tailwind
colors: {
custom: {
50: '#e7d783',
500: '#d8c64a',
950: '#000000',
},
}SCSS
$custom: #d8c64a; $custom-light: #e7d783; $custom-dark: #000000;
JSON
{
"hex": "#d8c64a",
"rgb": {
"r": 216,
"g": 198,
"b": 74
},
"hsl": {
"h": 52.394,
"s": 64.545,
"l": 56.863
},
"oklch": {
"l": 0.81902,
"c": 0.14266,
"h": 101
},
"luminance": 0.55482
}Semantic roles & 50–950 ramp
primary
#D8C64A
secondary
#364290
accent
#55E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E