#D8C451#D8C451
#D8C451 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.6% C 0.136 H 99.4°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C451 |
|---|---|
| RGB | rgb(216, 196, 81) |
| HSL | hsl(51, 63%, 58%) |
| HSV | hsv(51, 63%, 85%) |
| CMYK | cmyk(0%, 9.3%, 62.5%, 15.3%) |
| CIE-LAB | lab(78.85, -6.45, 58.61) |
| CIE-LCH | lch(78.85, 58.96, 96.28°) |
| OKLab | oklab(81.55% -0.0223 0.1338) |
| OKLCH | oklch(81.55% 0.136 99.4) |
| XYZ | xyz(49.5461, 54.6750, 15.7265) |
| Luminance | 0.5467 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Yellow
#D2BD0A
ΔE00 4.84
Sand (survey)
#E2CA76
ΔE00 5.01
Ugly Yellow
#D0C101
ΔE00 5.15
Maize
#F4D054
ΔE00 5.56
Dirty Yellow
#CDC50A
ΔE00 5.66
Dull Yellow
#EEDC5B
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C451 #5165D8
analogous
#D88051 #D8C451 #A8D851
triadic
#D8C451 #51D8C4 #C451D8
tetradic
#D8C451 #51D880 #5165D8 #D851A8
square
#D8C451 #51D880 #5165D8 #D851A8
split-complementary
#D8C451 #51A8D8 #8051D8
monochromatic
#8F7E20 #C1AA2B #D8C451 #E3D583 #EEE6B5
Accessibility & contrast
On white
1.76
#D8C451 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.93
#D8C451 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C451
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C451 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C451 | 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)
#D5BF44
Deuteranopia (green-blind)
#DBC657
Tritanopia (blue-blind)
#E8B7AC
Achromatopsia (no color)
#C3C3C3
Design tokens & code
CSS
--color: #d8c451; /* rgb */ color: rgb(216, 196, 81); /* oklch */ color: oklch(81.6% 0.136 99.4);
Tailwind
colors: {
custom: {
50: '#e7d587',
500: '#d8c451',
950: '#000000',
},
}SCSS
$custom: #d8c451; $custom-light: #e7d587; $custom-dark: #000000;
JSON
{
"hex": "#d8c451",
"rgb": {
"r": 216,
"g": 196,
"b": 81
},
"hsl": {
"h": 51.111,
"s": 63.38,
"l": 58.235
},
"oklch": {
"l": 0.81551,
"c": 0.13563,
"h": 99.4
},
"luminance": 0.54673
}Semantic roles & 50–950 ramp
primary
#D8C451
secondary
#394794
accent
#5AE641
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F