#D2C162#D2C162
#D2C162 is a light, moderate yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.118 H 99.3°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).
Color values
| HEX | #D2C162 |
|---|---|
| RGB | rgb(210, 193, 98) |
| HSL | hsl(51, 55%, 60%) |
| HSV | hsv(51, 53%, 82%) |
| CMYK | cmyk(0%, 8.1%, 53.3%, 17.6%) |
| CIE-LAB | lab(77.71, -6.16, 49.40) |
| CIE-LCH | lch(77.71, 49.79, 97.11°) |
| OKLab | oklab(80.58% -0.0191 0.1162) |
| OKLCH | oklch(80.58% 0.118 99.3) |
| XYZ | xyz(47.8545, 52.7253, 19.2092) |
| Luminance | 0.5272 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 3.87
Darkkhaki
#BDB76B
ΔE00 5.31
Sandy
#F1DA7A
ΔE00 6.48
Desert
#CCAD60
ΔE00 7.03
Mustard Yellow
#D2BD0A
ΔE00 7.18
Maize
#F4D054
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2C162 #6273D2
analogous
#D28962 #D2C162 #ABD262
triadic
#D2C162 #62D2C1 #C162D2
tetradic
#D2C162 #62D289 #6273D2 #D262AB
square
#D2C162 #62D289 #6273D2 #D262AB
split-complementary
#D2C162 #62ABD2 #8962D2
monochromatic
#908129 #C0AB37 #D2C162 #E0D492 #EDE7C1
Accessibility & contrast
On white
1.82
#D2C162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.54
#D2C162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2C162
11.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2C162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2C162 | 1.00 | 1.82 | 11.54 | 11.54 |
| #FFFFFF | 1.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BC59
Deuteranopia (green-blind)
#D5C366
Tritanopia (blue-blind)
#E0B5AB
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #d2c162; /* rgb */ color: rgb(210, 193, 98); /* oklch */ color: oklch(80.6% 0.118 99.3);
Tailwind
colors: {
custom: {
50: '#e2d391',
500: '#d2c162',
950: '#000000',
},
}SCSS
$custom: #d2c162; $custom-light: #e2d391; $custom-dark: #000000;
JSON
{
"hex": "#d2c162",
"rgb": {
"r": 210,
"g": 193,
"b": 98
},
"hsl": {
"h": 50.893,
"s": 55.446,
"l": 60.392
},
"oklch": {
"l": 0.80576,
"c": 0.11777,
"h": 99.3
},
"luminance": 0.52723
}Semantic roles & 50–950 ramp
primary
#D2C162
secondary
#424F96
accent
#3BC323
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F