#D8C450#D8C450
#D8C450 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.5% C 0.136 H 99.5°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C450 |
|---|---|
| RGB | rgb(216, 196, 80) |
| HSL | hsl(51, 64%, 58%) |
| HSV | hsv(51, 63%, 85%) |
| CMYK | cmyk(0%, 9.3%, 63%, 15.3%) |
| CIE-LAB | lab(78.85, -6.51, 59.03) |
| CIE-LCH | lch(78.85, 59.39, 96.30°) |
| OKLab | oklab(81.54% -0.0225 0.1345) |
| OKLCH | oklch(81.54% 0.136 99.5) |
| XYZ | xyz(49.5088, 54.6601, 15.5305) |
| Luminance | 0.5466 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Yellow
#D2BD0A
ΔE00 4.73
Ugly Yellow
#D0C101
ΔE00 5.04
Sand (survey)
#E2CA76
ΔE00 5.11
Maize
#F4D054
ΔE00 5.55
Dirty Yellow
#CDC50A
ΔE00 5.56
Dull Yellow
#EEDC5B
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C450 #5064D8
analogous
#D88050 #D8C450 #A8D850
triadic
#D8C450 #50D8C4 #C450D8
tetradic
#D8C450 #50D880 #5064D8 #D850A8
square
#D8C450 #50D880 #5064D8 #D850A8
split-complementary
#D8C450 #50A8D8 #8050D8
monochromatic
#8E7E20 #C0AA2B #D8C450 #E3D582 #EEE6B4
Accessibility & contrast
On white
1.76
#D8C450 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.93
#D8C450 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C450
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C450 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C450 | 1.00 | 1.76 | 11.93 | 11.93 |
| #FFFFFF | 1.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6BF42
Deuteranopia (green-blind)
#DBC656
Tritanopia (blue-blind)
#E8B7AB
Achromatopsia (no color)
#C3C3C3
Design tokens & code
CSS
--color: #d8c450; /* rgb */ color: rgb(216, 196, 80); /* oklch */ color: oklch(81.5% 0.136 99.5);
Tailwind
colors: {
custom: {
50: '#e7d586',
500: '#d8c450',
950: '#000000',
},
}SCSS
$custom: #d8c450; $custom-light: #e7d586; $custom-dark: #000000;
JSON
{
"hex": "#d8c450",
"rgb": {
"r": 216,
"g": 196,
"b": 80
},
"hsl": {
"h": 51.176,
"s": 63.551,
"l": 58.039
},
"oklch": {
"l": 0.81542,
"c": 0.13642,
"h": 99.5
},
"luminance": 0.54658
}Semantic roles & 50–950 ramp
primary
#D8C450
secondary
#394694
accent
#5AE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E