#D7C252#D7C252
#D7C252 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 81.1% C 0.133 H 98.7°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #D7C252 |
|---|---|
| RGB | rgb(215, 194, 82) |
| HSL | hsl(51, 62%, 58%) |
| HSV | hsv(51, 62%, 84%) |
| CMYK | cmyk(0%, 9.8%, 61.9%, 15.7%) |
| CIE-LAB | lab(78.25, -5.78, 57.49) |
| CIE-LCH | lch(78.25, 57.78, 95.74°) |
| OKLab | oklab(81.06% -0.0201 0.1316) |
| OKLCH | oklch(81.06% 0.133 98.7) |
| XYZ | xyz(48.8411, 53.6420, 15.7623) |
| Luminance | 0.5364 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.81
Mustard Yellow
#D2BD0A
ΔE00 4.99
Ugly Yellow
#D0C101
ΔE00 5.46
Dark Yellow
#D5B60A
ΔE00 5.70
Maize
#F4D054
ΔE00 5.71
Mustard (survey)
#CEB301
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D7C252 #5267D7
analogous
#D77F52 #D7C252 #A9D752
triadic
#D7C252 #52D7C2 #C252D7
tetradic
#D7C252 #52D77F #5267D7 #D752A9
square
#D7C252 #52D77F #5267D7 #D752A9
split-complementary
#D7C252 #52A9D7 #7F52D7
monochromatic
#8E7D21 #C0A82C #D7C252 #E2D484 #EEE5B5
Accessibility & contrast
On white
1.79
#D7C252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.73
#D7C252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D7C252
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D7C252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D7C252 | 1.00 | 1.79 | 11.73 | 11.73 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D3BD45
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#E7B5AA
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #d7c252; /* rgb */ color: rgb(215, 194, 82); /* oklch */ color: oklch(81.1% 0.133 98.7);
Tailwind
colors: {
custom: {
50: '#e6d487',
500: '#d7c252',
950: '#000000',
},
}SCSS
$custom: #d7c252; $custom-light: #e6d487; $custom-dark: #000000;
JSON
{
"hex": "#d7c252",
"rgb": {
"r": 215,
"g": 194,
"b": 82
},
"hsl": {
"h": 50.526,
"s": 62.441,
"l": 58.235
},
"oklch": {
"l": 0.81057,
"c": 0.13311,
"h": 98.7
},
"luminance": 0.5364
}Semantic roles & 50–950 ramp
primary
#D7C252
secondary
#3A4893
accent
#5CE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F