#D2C762#D2C762
#D2C762 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.123 H 103.1°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #D2C762 |
|---|---|
| RGB | rgb(210, 199, 98) |
| HSL | hsl(54, 55%, 60%) |
| HSV | hsv(54, 53%, 82%) |
| CMYK | cmyk(0%, 5.2%, 53.3%, 17.6%) |
| CIE-LAB | lab(79.29, -9.25, 51.25) |
| CIE-LCH | lch(79.29, 52.08, 100.23°) |
| OKLab | oklab(81.83% -0.028 0.1202) |
| OKLCH | oklch(81.83% 0.123 103.1) |
| XYZ | xyz(49.2079, 55.4320, 19.6603) |
| Luminance | 0.5543 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.87
Darkkhaki
#BDB76B
ΔE00 5.87
Greenish Beige
#C9D179
ΔE00 5.98
Sandy
#F1DA7A
ΔE00 6.13
Dull Yellow
#EEDC5B
ΔE00 6.38
Vomit Yellow
#C7C10C
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2C762 #626DD2
analogous
#D28F62 #D2C762 #A5D262
triadic
#D2C762 #62D2C7 #C762D2
tetradic
#D2C762 #62D28F #626DD2 #D262A5
square
#D2C762 #62D28F #626DD2 #D262A5
split-complementary
#D2C762 #62A5D2 #8F62D2
monochromatic
#908629 #C0B237 #D2C762 #E0D892 #EDE9C1
Accessibility & contrast
On white
1.74
#D2C762 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.09
#D2C762 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2C762
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2C762 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2C762 | 1.00 | 1.74 | 12.09 | 12.09 |
| #FFFFFF | 1.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#DAC767
Tritanopia (blue-blind)
#E0BBB0
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #d2c762; /* rgb */ color: rgb(210, 199, 98); /* oklch */ color: oklch(81.8% 0.123 103.1);
Tailwind
colors: {
custom: {
50: '#e2d791',
500: '#d2c762',
950: '#000000',
},
}SCSS
$custom: #d2c762; $custom-light: #e2d791; $custom-dark: #000000;
JSON
{
"hex": "#d2c762",
"rgb": {
"r": 210,
"g": 199,
"b": 98
},
"hsl": {
"h": 54.107,
"s": 55.446,
"l": 60.392
},
"oklch": {
"l": 0.81827,
"c": 0.12343,
"h": 103.1
},
"luminance": 0.5543
}Semantic roles & 50–950 ramp
primary
#D2C762
secondary
#424A96
accent
#32C323
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F