#D5C962#D5C962
#D5C962 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.5% C 0.125 H 102.7°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #D5C962 |
|---|---|
| RGB | rgb(213, 201, 98) |
| HSL | hsl(54, 58%, 61%) |
| HSV | hsv(54, 54%, 84%) |
| CMYK | cmyk(0%, 5.6%, 54%, 16.5%) |
| CIE-LAB | lab(80.07, -9.03, 52.22) |
| CIE-LCH | lch(80.07, 53.00, 99.81°) |
| OKLab | oklab(82.51% -0.0275 0.1223) |
| OKLCH | oklch(82.51% 0.125 102.7) |
| XYZ | xyz(50.5334, 56.8030, 19.8551) |
| Luminance | 0.5680 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.68
Sandy
#F1DA7A
ΔE00 5.59
Dull Yellow
#EEDC5B
ΔE00 5.74
Greenish Beige
#C9D179
ΔE00 6.20
Darkkhaki
#BDB76B
ΔE00 6.49
Dirty Yellow
#CDC50A
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D5C962 #626ED5
analogous
#D58F62 #D5C962 #A7D562
triadic
#D5C962 #62D5C9 #C962D5
tetradic
#D5C962 #62D58F #626ED5 #D562A7
square
#D5C962 #62D58F #626ED5 #D562A7
split-complementary
#D5C962 #62A7D5 #8F62D5
monochromatic
#958928 #C5B635 #D5C962 #E2DA92 #EFEAC3
Accessibility & contrast
On white
1.70
#D5C962 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.36
#D5C962 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D5C962
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D5C962 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D5C962 | 1.00 | 1.70 | 12.36 | 12.36 |
| #FFFFFF | 1.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D9C358
Deuteranopia (green-blind)
#DCC967
Tritanopia (blue-blind)
#E3BDB2
Achromatopsia (no color)
#C7C7C7
Design tokens & code
CSS
--color: #d5c962; /* rgb */ color: rgb(213, 201, 98); /* oklch */ color: oklch(82.5% 0.125 102.7);
Tailwind
colors: {
custom: {
50: '#e4d991',
500: '#d5c962',
950: '#000000',
},
}SCSS
$custom: #d5c962; $custom-light: #e4d991; $custom-dark: #000000;
JSON
{
"hex": "#d5c962",
"rgb": {
"r": 213,
"g": 201,
"b": 98
},
"hsl": {
"h": 53.739,
"s": 57.789,
"l": 60.98
},
"oklch": {
"l": 0.82506,
"c": 0.12534,
"h": 102.7
},
"luminance": 0.56801
}Semantic roles & 50–950 ramp
primary
#D5C962
secondary
#414B9A
accent
#31C520
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F