#D1C04D#D1C04D
#D1C04D is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.135 H 100.9°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #D1C04D |
|---|---|
| RGB | rgb(209, 192, 77) |
| HSL | hsl(52, 59%, 56%) |
| HSV | hsv(52, 63%, 82%) |
| CMYK | cmyk(0%, 8.1%, 63.2%, 18%) |
| CIE-LAB | lab(77.16, -7.60, 58.32) |
| CIE-LCH | lch(77.16, 58.81, 97.42°) |
| OKLab | oklab(80.05% -0.0256 0.1328) |
| OKLCH | oklch(80.05% 0.135 100.9) |
| XYZ | xyz(46.4856, 51.7923, 14.5681) |
| Luminance | 0.5179 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Yellow
#D2BD0A
ΔE00 4.64
Ugly Yellow
#D0C101
ΔE00 4.89
Olive Yellow
#C2B709
ΔE00 5.08
Vomit Yellow
#C7C10C
ΔE00 5.22
Dirty Yellow
#CDC50A
ΔE00 5.32
Puke Yellow
#C2BE0E
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D1C04D #4D5ED1
analogous
#D17E4D #D1C04D #A0D14D
triadic
#D1C04D #4DD1C0 #C04DD1
tetradic
#D1C04D #4DD17E #4D5ED1 #D14DA0
square
#D1C04D #4DD17E #4D5ED1 #D14DA0
split-complementary
#D1C04D #4DA0D1 #7E4DD1
monochromatic
#827622 #B3A22E #D1C04D #DED17E #EAE2AE
Accessibility & contrast
On white
1.85
#D1C04D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.36
#D1C04D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D1C04D
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D1C04D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D1C04D | 1.00 | 1.85 | 11.36 | 11.36 |
| #FFFFFF | 1.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BB3F
Deuteranopia (green-blind)
#D6C253
Tritanopia (blue-blind)
#E0B3A8
Achromatopsia (no color)
#BEBEBE
Design tokens & code
CSS
--color: #d1c04d; /* rgb */ color: rgb(209, 192, 77); /* oklch */ color: oklch(80.0% 0.135 100.9);
Tailwind
colors: {
custom: {
50: '#e2d284',
500: '#d1c04d',
950: '#000000',
},
}SCSS
$custom: #d1c04d; $custom-light: #e2d284; $custom-dark: #000000;
JSON
{
"hex": "#d1c04d",
"rgb": {
"r": 209,
"g": 192,
"b": 77
},
"hsl": {
"h": 52.273,
"s": 58.929,
"l": 56.078
},
"oklch": {
"l": 0.80048,
"c": 0.13524,
"h": 100.9
},
"luminance": 0.5179
}Semantic roles & 50–950 ramp
primary
#D1C04D
secondary
#394389
accent
#5AE246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E