#E8D978#E8D978
#E8D978 is a very light, moderate yellow. Relative luminance 0.681; OKLCH L 87.7% C 0.120 H 100.6°. Best body text is #000000 at 14.63:1 contrast (WCAG AA passes).
Color values
| HEX | #E8D978 |
|---|---|
| RGB | rgb(232, 217, 120) |
| HSL | hsl(52, 71%, 69%) |
| HSV | hsv(52, 48%, 91%) |
| CMYK | cmyk(0%, 6.5%, 48.3%, 9%) |
| CIE-LAB | lab(86.08, -7.56, 49.30) |
| CIE-LCH | lch(86.08, 49.87, 98.72°) |
| OKLab | oklab(87.74% -0.0221 0.1176) |
| OKLCH | oklch(87.74% 0.12 100.6) |
| XYZ | xyz(61.4834, 68.1397, 27.6792) |
| Luminance | 0.6814 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 2.30
Khaki (CSS)
#F0E68C
ΔE00 3.32
Dull Yellow
#EEDC5B
ΔE00 4.14
Wheat (survey)
#FBDD7E
ΔE00 4.48
Sand (survey)
#E2CA76
ΔE00 4.55
Yellow Tan
#FFE36E
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#E8D978 #7887E8
analogous
#E8A178 #E8D978 #BFE878
triadic
#E8D978 #78E8D9 #D978E8
tetradic
#E8D978 #78E8A1 #7887E8 #E878BF
square
#E8D978 #78E8A1 #7887E8 #E878BF
split-complementary
#E8D978 #78BFE8 #A178E8
monochromatic
#C4AE21 #DFCA44 #E8D978 #F1E8AC #FAF6E1
Accessibility & contrast
On white
1.44
#E8D978 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.63
#E8D978 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #E8D978
14.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##E8D978 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##E8D978 | 1.00 | 1.44 | 14.63 | 14.63 |
| #FFFFFF | 1.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E9D470
Deuteranopia (green-blind)
#EDDA7C
Tritanopia (blue-blind)
#F7CDC2
Achromatopsia (no color)
#D7D7D7
Design tokens & code
CSS
--color: #e8d978; /* rgb */ color: rgb(232, 217, 120); /* oklch */ color: oklch(87.7% 0.120 100.6);
Tailwind
colors: {
custom: {
50: '#f1e4a1',
500: '#e8d978',
950: '#000000',
},
}SCSS
$custom: #e8d978; $custom-light: #f1e4a1; $custom-dark: #000000;
JSON
{
"hex": "#e8d978",
"rgb": {
"r": 232,
"g": 217,
"b": 120
},
"hsl": {
"h": 51.964,
"s": 70.886,
"l": 69.02
},
"oklch": {
"l": 0.87736,
"c": 0.11962,
"h": 100.6
},
"luminance": 0.68138
}Semantic roles & 50–950 ramp
primary
#E8D978
secondary
#4455C0
accent
#2CD313
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150F
muted
#858480