#D2C452#D2C452
#D2C452 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.135 H 102.3°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #D2C452 |
|---|---|
| RGB | rgb(210, 196, 82) |
| HSL | hsl(53, 59%, 57%) |
| HSV | hsv(53, 61%, 82%) |
| CMYK | cmyk(0%, 6.7%, 61%, 17.6%) |
| CIE-LAB | lab(78.34, -8.90, 57.46) |
| CIE-LCH | lch(78.34, 58.15, 98.81°) |
| OKLab | oklab(81.02% -0.0288 0.1317) |
| OKLCH | oklch(81.02% 0.135 102.3) |
| XYZ | xyz(47.8430, 53.7925, 15.8439) |
| Luminance | 0.5379 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Yellow
#D0C101
ΔE00 5.17
Vomit Yellow
#C7C10C
ΔE00 5.19
Dirty Yellow
#CDC50A
ΔE00 5.20
Mustard Yellow
#D2BD0A
ΔE00 5.29
Puke Yellow
#C2BE0E
ΔE00 5.42
Olive Yellow
#C2B709
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2C452 #5260D2
analogous
#D28452 #D2C452 #A0D252
triadic
#D2C452 #52D2C4 #C452D2
tetradic
#D2C452 #52D284 #5260D2 #D252A0
square
#D2C452 #52D284 #5260D2 #D252A0
split-complementary
#D2C452 #52A0D2 #8452D2
monochromatic
#877C23 #B7A830 #D2C452 #DFD583 #EBE5B3
Accessibility & contrast
On white
1.79
#D2C452 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.76
#D2C452 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2C452
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2C452 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2C452 | 1.00 | 1.79 | 11.76 | 11.76 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5BE45
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#E1B7AC
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #d2c452; /* rgb */ color: rgb(210, 196, 82); /* oklch */ color: oklch(81.0% 0.135 102.3);
Tailwind
colors: {
custom: {
50: '#e3d587',
500: '#d2c452',
950: '#000000',
},
}SCSS
$custom: #d2c452; $custom-light: #e3d587; $custom-dark: #000000;
JSON
{
"hex": "#d2c452",
"rgb": {
"r": 210,
"g": 196,
"b": 82
},
"hsl": {
"h": 53.438,
"s": 58.716,
"l": 57.255
},
"oklch": {
"l": 0.81022,
"c": 0.13476,
"h": 102.3
},
"luminance": 0.53791
}Semantic roles & 50–950 ramp
primary
#D2C452
secondary
#3B448D
accent
#57E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F