#D7C152#D7C152
#D7C152 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.132 H 98.1°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #D7C152 |
|---|---|
| RGB | rgb(215, 193, 82) |
| HSL | hsl(50, 62%, 58%) |
| HSV | hsv(50, 62%, 84%) |
| CMYK | cmyk(0%, 10.2%, 61.9%, 15.7%) |
| CIE-LAB | lab(77.99, -5.26, 57.20) |
| CIE-LCH | lch(77.99, 57.45, 95.25°) |
| OKLab | oklab(80.85% -0.0187 0.131) |
| OKLCH | oklch(80.85% 0.132 98.1) |
| XYZ | xyz(48.6193, 53.1984, 15.6884) |
| Luminance | 0.5320 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.75
Mustard Yellow
#D2BD0A
ΔE00 5.04
Dark Yellow
#D5B60A
ΔE00 5.56
Ugly Yellow
#D0C101
ΔE00 5.62
Maize
#F4D054
ΔE00 5.69
Mustard
#DBB42C
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D7C152 #5268D7
analogous
#D77E52 #D7C152 #AAD752
triadic
#D7C152 #52D7C1 #C152D7
tetradic
#D7C152 #52D77E #5268D7 #D752AA
square
#D7C152 #52D77E #5268D7 #D752AA
split-complementary
#D7C152 #52AAD7 #7E52D7
monochromatic
#8E7C21 #C0A72C #D7C152 #E2D384 #EEE5B5
Accessibility & contrast
On white
1.80
#D7C152 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.64
#D7C152 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D7C152
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D7C152 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D7C152 | 1.00 | 1.80 | 11.64 | 11.64 |
| #FFFFFF | 1.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D8C458
Tritanopia (blue-blind)
#E7B4A9
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #d7c152; /* rgb */ color: rgb(215, 193, 82); /* oklch */ color: oklch(80.8% 0.132 98.1);
Tailwind
colors: {
custom: {
50: '#e6d387',
500: '#d7c152',
950: '#000000',
},
}SCSS
$custom: #d7c152; $custom-light: #e6d387; $custom-dark: #000000;
JSON
{
"hex": "#d7c152",
"rgb": {
"r": 215,
"g": 193,
"b": 82
},
"hsl": {
"h": 50.075,
"s": 62.441,
"l": 58.235
},
"oklch": {
"l": 0.8085,
"c": 0.1323,
"h": 98.1
},
"luminance": 0.53196
}Semantic roles & 50–950 ramp
primary
#D7C152
secondary
#3A4993
accent
#5DE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F