#E7D157#E7D157
#E7D157 is a very light, vivid yellow. Relative luminance 0.633; OKLCH L 85.6% C 0.142 H 99.1°. Best body text is #000000 at 13.66:1 contrast (WCAG AA passes).
Color values
| HEX | #E7D157 |
|---|---|
| RGB | rgb(231, 209, 87) |
| HSL | hsl(51, 75%, 62%) |
| HSV | hsv(51, 62%, 91%) |
| CMYK | cmyk(0%, 9.5%, 62.3%, 9.4%) |
| CIE-LAB | lab(83.59, -6.44, 61.53) |
| CIE-LCH | lch(83.59, 61.87, 95.98°) |
| OKLab | oklab(85.64% -0.0225 0.1405) |
| OKLCH | oklch(85.64% 0.142 99.1) |
| XYZ | xyz(57.4781, 63.2805, 18.2017) |
| Luminance | 0.6328 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 2.69
Light Mustard
#F7D560
ΔE00 3.62
Maize
#F4D054
ΔE00 3.75
Sand Yellow
#FCE166
ΔE00 4.03
Light Gold
#FDDC5C
ΔE00 4.10
Sandy
#F1DA7A
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#E7D157 #576DE7
analogous
#E78957 #E7D157 #B5E757
triadic
#E7D157 #57E7D1 #D157E7
tetradic
#E7D157 #57E789 #576DE7 #E757B5
square
#E7D157 #57E789 #576DE7 #E757B5
split-complementary
#E7D157 #57B5E7 #8957E7
monochromatic
#AB9518 #DFC221 #E7D157 #EFE08D #F6EEC2
Accessibility & contrast
On white
1.54
#E7D157 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.66
#E7D157 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #E7D157
13.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##E7D157 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##E7D157 | 1.00 | 1.54 | 13.66 | 13.66 |
| #FFFFFF | 1.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E4CC49
Deuteranopia (green-blind)
#EAD45D
Tritanopia (blue-blind)
#F8C3B7
Achromatopsia (no color)
#D0D0D0
Design tokens & code
CSS
--color: #e7d157; /* rgb */ color: rgb(231, 209, 87); /* oklch */ color: oklch(85.6% 0.142 99.1);
Tailwind
colors: {
custom: {
50: '#f2de8b',
500: '#e7d157',
950: '#000000',
},
}SCSS
$custom: #e7d157; $custom-light: #f2de8b; $custom-dark: #000000;
JSON
{
"hex": "#e7d157",
"rgb": {
"r": 231,
"g": 209,
"b": 87
},
"hsl": {
"h": 50.833,
"s": 75,
"l": 62.353
},
"oklch": {
"l": 0.85635,
"c": 0.14224,
"h": 99.1
},
"luminance": 0.63278
}Semantic roles & 50–950 ramp
primary
#E7D157
secondary
#3648AC
accent
#2DD70E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150C
muted
#85847F