#D9C162#D9C162
#D9C162 is a light, moderate yellow. Relative luminance 0.538; OKLCH L 81.2% C 0.119 H 95.4°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #D9C162 |
|---|---|
| RGB | rgb(217, 193, 98) |
| HSL | hsl(48, 61%, 62%) |
| HSV | hsv(48, 55%, 85%) |
| CMYK | cmyk(0%, 11.1%, 54.8%, 14.9%) |
| CIE-LAB | lab(78.33, -3.26, 50.28) |
| CIE-LCH | lch(78.33, 50.39, 93.71°) |
| OKLab | oklab(81.21% -0.0112 0.118) |
| OKLCH | oklch(81.21% 0.119 95.4) |
| XYZ | xyz(49.8917, 53.7757, 19.3047) |
| Luminance | 0.5377 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 2.93
Sandy
#F1DA7A
ΔE00 5.96
Maize
#F4D054
ΔE00 6.02
Desert
#CCAD60
ΔE00 6.17
Light Mustard
#F7D560
ΔE00 6.25
Mustard
#DBB42C
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D9C162 #627AD9
analogous
#D98662 #D9C162 #B6D962
triadic
#D9C162 #62D9C1 #C162D9
tetradic
#D9C162 #62D986 #627AD9 #D962B6
square
#D9C162 #62D986 #627AD9 #D962B6
split-complementary
#D9C162 #62B6D9 #8662D9
monochromatic
#9B8326 #CCAD31 #D9C162 #E5D493 #F1E8C5
Accessibility & contrast
On white
1.79
#D9C162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.75
#D9C162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D9C162
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D9C162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D9C162 | 1.00 | 1.79 | 11.75 | 11.75 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2BD59
Deuteranopia (green-blind)
#D8C566
Tritanopia (blue-blind)
#E8B5AB
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #d9c162; /* rgb */ color: rgb(217, 193, 98); /* oklch */ color: oklch(81.2% 0.119 95.4);
Tailwind
colors: {
custom: {
50: '#e7d391',
500: '#d9c162',
950: '#000000',
},
}SCSS
$custom: #d9c162; $custom-light: #e7d391; $custom-dark: #000000;
JSON
{
"hex": "#d9c162",
"rgb": {
"r": 217,
"g": 193,
"b": 98
},
"hsl": {
"h": 47.899,
"s": 61.026,
"l": 61.765
},
"oklch": {
"l": 0.81212,
"c": 0.11853,
"h": 95.4
},
"luminance": 0.53773
}Semantic roles & 50–950 ramp
primary
#D9C162
secondary
#40539F
accent
#3FC91D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F