#D7C452#D7C452
#D7C452 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.5% C 0.135 H 99.9°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).
Color values
| HEX | #D7C452 |
|---|---|
| RGB | rgb(215, 196, 82) |
| HSL | hsl(51, 62%, 58%) |
| HSV | hsv(51, 62%, 84%) |
| CMYK | cmyk(0%, 8.8%, 61.9%, 15.7%) |
| CIE-LAB | lab(78.77, -6.81, 58.06) |
| CIE-LCH | lch(78.77, 58.46, 96.69°) |
| OKLab | oklab(81.47% -0.0231 0.1328) |
| OKLCH | oklch(81.47% 0.135 99.9) |
| XYZ | xyz(49.2892, 54.5382, 15.9117) |
| Luminance | 0.5454 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Yellow
#D2BD0A
ΔE00 4.96
Sand (survey)
#E2CA76
ΔE00 5.01
Ugly Yellow
#D0C101
ΔE00 5.20
Dirty Yellow
#CDC50A
ΔE00 5.64
Vomit Yellow
#C7C10C
ΔE00 5.80
Maize
#F4D054
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D7C452 #5265D7
analogous
#D78252 #D7C452 #A7D752
triadic
#D7C452 #52D7C4 #C452D7
tetradic
#D7C452 #52D782 #5265D7 #D752A7
square
#D7C452 #52D782 #5265D7 #D752A7
split-complementary
#D7C452 #52A7D7 #8252D7
monochromatic
#8E7E21 #C0AA2C #D7C452 #E2D584 #EEE6B5
Accessibility & contrast
On white
1.76
#D7C452 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.91
#D7C452 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D7C452
11.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D7C452 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D7C452 | 1.00 | 1.76 | 11.91 | 11.91 |
| #FFFFFF | 1.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5BF45
Deuteranopia (green-blind)
#DBC658
Tritanopia (blue-blind)
#E7B7AC
Achromatopsia (no color)
#C3C3C3
Design tokens & code
CSS
--color: #d7c452; /* rgb */ color: rgb(215, 196, 82); /* oklch */ color: oklch(81.5% 0.135 99.9);
Tailwind
colors: {
custom: {
50: '#e6d587',
500: '#d7c452',
950: '#000000',
},
}SCSS
$custom: #d7c452; $custom-light: #e6d587; $custom-dark: #000000;
JSON
{
"hex": "#d7c452",
"rgb": {
"r": 215,
"g": 196,
"b": 82
},
"hsl": {
"h": 51.429,
"s": 62.441,
"l": 58.235
},
"oklch": {
"l": 0.8147,
"c": 0.13478,
"h": 99.9
},
"luminance": 0.54536
}Semantic roles & 50–950 ramp
primary
#D7C452
secondary
#3A4793
accent
#5AE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F