#D7C151#D7C151
#D7C151 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.133 H 98.2°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #D7C151 |
|---|---|
| RGB | rgb(215, 193, 81) |
| HSL | hsl(50, 63%, 58%) |
| HSV | hsv(50, 62%, 84%) |
| CMYK | cmyk(0%, 10.2%, 62.3%, 15.7%) |
| CIE-LAB | lab(77.98, -5.33, 57.63) |
| CIE-LCH | lch(77.98, 57.88, 95.28°) |
| OKLab | oklab(80.84% -0.019 0.1318) |
| OKLCH | oklch(80.84% 0.133 98.2) |
| XYZ | xyz(48.5815, 53.1833, 15.4894) |
| Luminance | 0.5318 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 4.86
Mustard Yellow
#D2BD0A
ΔE00 4.92
Dark Yellow
#D5B60A
ΔE00 5.46
Ugly Yellow
#D0C101
ΔE00 5.51
Maize
#F4D054
ΔE00 5.67
Mustard
#DBB42C
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D7C151 #5167D7
analogous
#D77E51 #D7C151 #AAD751
triadic
#D7C151 #51D7C1 #C151D7
tetradic
#D7C151 #51D77E #5167D7 #D751AA
square
#D7C151 #51D77E #5167D7 #D751AA
split-complementary
#D7C151 #51AAD7 #7E51D7
monochromatic
#8D7B20 #BFA72C #D7C151 #E2D383 #EEE4B5
Accessibility & contrast
On white
1.80
#D7C151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.64
#D7C151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D7C151
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D7C151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D7C151 | 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)
#D3BC44
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E7B4A9
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #d7c151; /* rgb */ color: rgb(215, 193, 81); /* oklch */ color: oklch(80.8% 0.133 98.2);
Tailwind
colors: {
custom: {
50: '#e6d386',
500: '#d7c151',
950: '#000000',
},
}SCSS
$custom: #d7c151; $custom-light: #e6d386; $custom-dark: #000000;
JSON
{
"hex": "#d7c151",
"rgb": {
"r": 215,
"g": 193,
"b": 81
},
"hsl": {
"h": 50.149,
"s": 62.617,
"l": 58.039
},
"oklch": {
"l": 0.8084,
"c": 0.13311,
"h": 98.2
},
"luminance": 0.53181
}Semantic roles & 50–950 ramp
primary
#D7C151
secondary
#394893
accent
#5DE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E