#D7C052#D7C052
#D7C052 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.132 H 97.5°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #D7C052 |
|---|---|
| RGB | rgb(215, 192, 82) |
| HSL | hsl(50, 62%, 58%) |
| HSV | hsv(50, 62%, 84%) |
| CMYK | cmyk(0%, 10.7%, 61.9%, 15.7%) |
| CIE-LAB | lab(77.73, -4.74, 56.92) |
| CIE-LCH | lch(77.73, 57.12, 94.76°) |
| OKLab | oklab(80.64% -0.0172 0.1304) |
| OKLCH | oklch(80.64% 0.132 97.5) |
| XYZ | xyz(48.3990, 52.7578, 15.6149) |
| Luminance | 0.5276 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.72
Mustard Yellow
#D2BD0A
ΔE00 5.13
Dark Yellow
#D5B60A
ΔE00 5.43
Mustard
#DBB42C
ΔE00 5.49
Maize
#F4D054
ΔE00 5.70
Mustard (survey)
#CEB301
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D7C052 #5269D7
analogous
#D77D52 #D7C052 #ABD752
triadic
#D7C052 #52D7C0 #C052D7
tetradic
#D7C052 #52D77D #5269D7 #D752AB
square
#D7C052 #52D77D #5269D7 #D752AB
split-complementary
#D7C052 #52ABD7 #7D52D7
monochromatic
#8E7B21 #C0A62C #D7C052 #E2D284 #EEE4B5
Accessibility & contrast
On white
1.82
#D7C052 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.55
#D7C052 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D7C052
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D7C052 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D7C052 | 1.00 | 1.82 | 11.55 | 11.55 |
| #FFFFFF | 1.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BC46
Deuteranopia (green-blind)
#D8C357
Tritanopia (blue-blind)
#E7B3A8
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #d7c052; /* rgb */ color: rgb(215, 192, 82); /* oklch */ color: oklch(80.6% 0.132 97.5);
Tailwind
colors: {
custom: {
50: '#e6d287',
500: '#d7c052',
950: '#000000',
},
}SCSS
$custom: #d7c052; $custom-light: #e6d287; $custom-dark: #000000;
JSON
{
"hex": "#d7c052",
"rgb": {
"r": 215,
"g": 192,
"b": 82
},
"hsl": {
"h": 49.624,
"s": 62.441,
"l": 58.235
},
"oklch": {
"l": 0.80644,
"c": 0.1315,
"h": 97.5
},
"luminance": 0.52756
}Semantic roles & 50–950 ramp
primary
#D7C052
secondary
#3A4993
accent
#5FE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F