#D2CD4F#D2CD4F
#D2CD4F is a very light, vivid yellow. Relative luminance 0.579; OKLCH L 82.9% C 0.146 H 107.0°. Best body text is #000000 at 12.59:1 contrast (WCAG AA passes).
Color values
| HEX | #D2CD4F |
|---|---|
| RGB | rgb(210, 205, 79) |
| HSL | hsl(58, 59%, 57%) |
| HSV | hsv(58, 62%, 82%) |
| CMYK | cmyk(0%, 2.4%, 62.4%, 17.6%) |
| CIE-LAB | lab(80.70, -13.66, 61.29) |
| CIE-LCH | lch(80.70, 62.79, 102.57°) |
| OKLab | oklab(82.89% -0.0426 0.1393) |
| OKLCH | oklch(82.89% 0.146 107) |
| XYZ | xyz(49.8226, 57.9304, 15.9528) |
| Luminance | 0.5793 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dirty Yellow
#CDC50A
ΔE00 4.59
Vomit Yellow
#C7C10C
ΔE00 4.82
Piss Yellow
#DDD618
ΔE00 5.15
Puke Yellow
#C2BE0E
ΔE00 5.20
Dull Yellow
#EEDC5B
ΔE00 5.24
Ugly Yellow
#D0C101
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2CD4F #4F54D2
analogous
#D28C4F #D2CD4F #96D24F
triadic
#D2CD4F #4FD2CD #CD4FD2
tetradic
#D2CD4F #4FD28C #4F54D2 #D24F96
square
#D2CD4F #4FD28C #4F54D2 #D24F96
split-complementary
#D2CD4F #4F96D2 #8C4FD2
monochromatic
#858122 #B5B02E #D2CD4F #DEDB80 #EBE9B0
Accessibility & contrast
On white
1.67
#D2CD4F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.59
#D2CD4F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2CD4F
12.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2CD4F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2CD4F | 1.00 | 1.67 | 12.59 | 12.59 |
| #FFFFFF | 1.67 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#DDC63F
Deuteranopia (green-blind)
#E0CB57
Tritanopia (blue-blind)
#E0C0B3
Achromatopsia (no color)
#C8C8C8
Design tokens & code
CSS
--color: #d2cd4f; /* rgb */ color: rgb(210, 205, 79); /* oklch */ color: oklch(82.9% 0.146 107.0);
Tailwind
colors: {
custom: {
50: '#e3dc86',
500: '#d2cd4f',
950: '#000000',
},
}SCSS
$custom: #d2cd4f; $custom-light: #e3dc86; $custom-dark: #000000;
JSON
{
"hex": "#d2cd4f",
"rgb": {
"r": 210,
"g": 205,
"b": 79
},
"hsl": {
"h": 57.71,
"s": 59.276,
"l": 56.667
},
"oklch": {
"l": 0.82891,
"c": 0.14572,
"h": 107
},
"luminance": 0.57929
}Semantic roles & 50–950 ramp
primary
#D2CD4F
secondary
#3A3D8C
accent
#4BE245
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16150B
muted
#84847E