#D9C252#D9C252
#D9C252 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.133 H 97.7°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #D9C252 |
|---|---|
| RGB | rgb(217, 194, 82) |
| HSL | hsl(50, 64%, 59%) |
| HSV | hsv(50, 62%, 85%) |
| CMYK | cmyk(0%, 10.6%, 62.2%, 14.9%) |
| CIE-LAB | lab(78.43, -4.94, 57.74) |
| CIE-LCH | lch(78.43, 57.95, 94.89°) |
| OKLab | oklab(81.24% -0.0179 0.1321) |
| OKLCH | oklch(81.24% 0.133 97.7) |
| XYZ | xyz(49.4321, 53.9468, 15.7900) |
| Luminance | 0.5394 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.66
Mustard Yellow
#D2BD0A
ΔE00 5.03
Maize
#F4D054
ΔE00 5.28
Dark Yellow
#D5B60A
ΔE00 5.50
Ugly Yellow
#D0C101
ΔE00 5.64
Mustard
#DBB42C
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D9C252 #5269D9
analogous
#D97E52 #D9C252 #ACD952
triadic
#D9C252 #52D9C2 #C252D9
tetradic
#D9C252 #52D97E #5269D9 #D952AC
square
#D9C252 #52D97E #5269D9 #D952AC
split-complementary
#D9C252 #52ACD9 #7E52D9
monochromatic
#917E20 #C3A92B #D9C252 #E4D484 #EFE5B6
Accessibility & contrast
On white
1.78
#D9C252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.79
#D9C252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D9C252
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D9C252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D9C252 | 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)
#D4BE45
Deuteranopia (green-blind)
#DAC558
Tritanopia (blue-blind)
#E9B5AA
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #d9c252; /* rgb */ color: rgb(217, 194, 82); /* oklch */ color: oklch(81.2% 0.133 97.7);
Tailwind
colors: {
custom: {
50: '#e8d487',
500: '#d9c252',
950: '#000000',
},
}SCSS
$custom: #d9c252; $custom-light: #e8d487; $custom-dark: #000000;
JSON
{
"hex": "#d9c252",
"rgb": {
"r": 217,
"g": 194,
"b": 82
},
"hsl": {
"h": 49.778,
"s": 63.981,
"l": 58.627
},
"oklch": {
"l": 0.8124,
"c": 0.13325,
"h": 97.7
},
"luminance": 0.53944
}Semantic roles & 50–950 ramp
primary
#D9C252
secondary
#394996
accent
#5DE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F