#E7D962#E7D962
#E7D962 is a very light, vivid yellow. Relative luminance 0.675; OKLCH L 87.4% C 0.140 H 102.6°. Best body text is #000000 at 14.50:1 contrast (WCAG AA passes).
Color values
| HEX | #E7D962 |
|---|---|
| RGB | rgb(231, 217, 98) |
| HSL | hsl(54, 73%, 65%) |
| HSV | hsv(54, 58%, 91%) |
| CMYK | cmyk(0%, 6.1%, 57.6%, 9.4%) |
| CIE-LAB | lab(85.76, -9.74, 59.12) |
| CIE-LCH | lch(85.76, 59.91, 99.36°) |
| OKLab | oklab(87.39% -0.0307 0.1367) |
| OKLCH | oklch(87.39% 0.14 102.6) |
| XYZ | xyz(59.9745, 67.4987, 21.4223) |
| Luminance | 0.6750 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 1.73
Sandy
#F1DA7A
ΔE00 4.05
Sand Yellow
#FCE166
ΔE00 4.09
Yellow Tan
#FFE36E
ΔE00 4.61
Sandy Yellow
#FDEE73
ΔE00 4.66
Yellowish
#FAEE66
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#E7D962 #6270E7
analogous
#E79762 #E7D962 #B3E762
triadic
#E7D962 #62E7D9 #D962E7
tetradic
#E7D962 #62E797 #6270E7 #E762B3
square
#E7D962 #62E797 #6270E7 #E762B3
split-complementary
#E7D962 #62B3E7 #9762E7
monochromatic
#B3A31B #DFCC2D #E7D962 #EFE697 #F7F3CC
Accessibility & contrast
On white
1.45
#E7D962 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.50
#E7D962 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #E7D962
14.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##E7D962 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##E7D962 | 1.00 | 1.45 | 14.50 | 14.50 |
| #FFFFFF | 1.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#EBD356
Deuteranopia (green-blind)
#EFD968
Tritanopia (blue-blind)
#F7CCBF
Achromatopsia (no color)
#D6D6D6
Design tokens & code
CSS
--color: #e7d962; /* rgb */ color: rgb(231, 217, 98); /* oklch */ color: oklch(87.4% 0.140 102.6);
Tailwind
colors: {
custom: {
50: '#f1e493',
500: '#e7d962',
950: '#000000',
},
}SCSS
$custom: #e7d962; $custom-light: #f1e493; $custom-dark: #000000;
JSON
{
"hex": "#e7d962",
"rgb": {
"r": 231,
"g": 217,
"b": 98
},
"hsl": {
"h": 53.684,
"s": 73.481,
"l": 64.51
},
"oklch": {
"l": 0.87385,
"c": 0.14014,
"h": 102.6
},
"luminance": 0.67496
}Semantic roles & 50–950 ramp
primary
#E7D962
secondary
#3A46B4
accent
#25D610
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F