#D9C251#D9C251
#D9C251 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.134 H 97.8°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #D9C251 |
|---|---|
| RGB | rgb(217, 194, 81) |
| HSL | hsl(50, 64%, 58%) |
| HSV | hsv(50, 63%, 85%) |
| CMYK | cmyk(0%, 10.6%, 62.7%, 14.9%) |
| CIE-LAB | lab(78.42, -5.00, 58.16) |
| CIE-LCH | lch(78.42, 58.38, 94.91°) |
| OKLab | oklab(81.23% -0.0182 0.1328) |
| OKLCH | oklch(81.23% 0.134 97.8) |
| XYZ | xyz(49.3944, 53.9316, 15.5910) |
| Luminance | 0.5393 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.77
Mustard Yellow
#D2BD0A
ΔE00 4.92
Maize
#F4D054
ΔE00 5.26
Dark Yellow
#D5B60A
ΔE00 5.41
Ugly Yellow
#D0C101
ΔE00 5.53
Mustard
#DBB42C
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D9C251 #5168D9
analogous
#D97E51 #D9C251 #ACD951
triadic
#D9C251 #51D9C2 #C251D9
tetradic
#D9C251 #51D97E #5168D9 #D951AC
square
#D9C251 #51D97E #5168D9 #D951AC
split-complementary
#D9C251 #51ACD9 #7E51D9
monochromatic
#907D1F #C2A92A #D9C251 #E4D483 #EFE5B5
Accessibility & contrast
On white
1.78
#D9C251 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.79
#D9C251 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D9C251
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D9C251 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D9C251 | 1.00 | 1.78 | 11.79 | 11.79 |
| #FFFFFF | 1.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D4BD44
Deuteranopia (green-blind)
#DAC557
Tritanopia (blue-blind)
#E9B5AA
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #d9c251; /* rgb */ color: rgb(217, 194, 81); /* oklch */ color: oklch(81.2% 0.134 97.8);
Tailwind
colors: {
custom: {
50: '#e8d486',
500: '#d9c251',
950: '#000000',
},
}SCSS
$custom: #d9c251; $custom-light: #e8d486; $custom-dark: #000000;
JSON
{
"hex": "#d9c251",
"rgb": {
"r": 217,
"g": 194,
"b": 81
},
"hsl": {
"h": 49.853,
"s": 64.151,
"l": 58.431
},
"oklch": {
"l": 0.8123,
"c": 0.13406,
"h": 97.8
},
"luminance": 0.53929
}Semantic roles & 50–950 ramp
primary
#D9C251
secondary
#394895
accent
#5DE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E