#D5C162#D5C162
#D5C162 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.118 H 97.7°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #D5C162 |
|---|---|
| RGB | rgb(213, 193, 98) |
| HSL | hsl(50, 58%, 61%) |
| HSV | hsv(50, 54%, 84%) |
| CMYK | cmyk(0%, 9.4%, 54%, 16.5%) |
| CIE-LAB | lab(77.98, -4.92, 49.78) |
| CIE-LCH | lch(77.98, 50.02, 95.65°) |
| OKLab | oklab(80.85% -0.0157 0.117) |
| OKLCH | oklch(80.85% 0.118 97.7) |
| XYZ | xyz(48.7169, 53.1699, 19.2496) |
| Luminance | 0.5317 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 3.35
Darkkhaki
#BDB76B
ΔE00 5.92
Sandy
#F1DA7A
ΔE00 6.18
Desert
#CCAD60
ΔE00 6.60
Maize
#F4D054
ΔE00 6.75
Light Mustard
#F7D560
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D5C162 #6276D5
analogous
#D58762 #D5C162 #AFD562
triadic
#D5C162 #62D5C1 #C162D5
tetradic
#D5C162 #62D587 #6276D5 #D562AF
square
#D5C162 #62D587 #6276D5 #D562AF
split-complementary
#D5C162 #62AFD5 #8762D5
monochromatic
#958228 #C5AC35 #D5C162 #E2D492 #EFE7C3
Accessibility & contrast
On white
1.81
#D5C162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.63
#D5C162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D5C162
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D5C162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D5C162 | 1.00 | 1.81 | 11.63 | 11.63 |
| #FFFFFF | 1.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BD59
Deuteranopia (green-blind)
#D6C466
Tritanopia (blue-blind)
#E4B5AB
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #d5c162; /* rgb */ color: rgb(213, 193, 98); /* oklch */ color: oklch(80.8% 0.118 97.7);
Tailwind
colors: {
custom: {
50: '#e4d391',
500: '#d5c162',
950: '#000000',
},
}SCSS
$custom: #d5c162; $custom-light: #e4d391; $custom-dark: #000000;
JSON
{
"hex": "#d5c162",
"rgb": {
"r": 213,
"g": 193,
"b": 98
},
"hsl": {
"h": 49.565,
"s": 57.789,
"l": 60.98
},
"oklch": {
"l": 0.80846,
"c": 0.11802,
"h": 97.7
},
"luminance": 0.53168
}Semantic roles & 50–950 ramp
primary
#D5C162
secondary
#41519A
accent
#3DC520
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F