#978E40#978E40
#978E40 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.100 H 102.8°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #978E40 |
|---|---|
| RGB | rgb(151, 142, 64) |
| HSL | hsl(54, 40%, 42%) |
| HSV | hsv(54, 58%, 59%) |
| CMYK | cmyk(0%, 6%, 57.6%, 40.8%) |
| CIE-LAB | lab(58.32, -7.13, 42.01) |
| CIE-LCH | lch(58.32, 42.61, 99.63°) |
| OKLab | oklab(63.82% -0.0221 0.0977) |
| OKLCH | oklch(63.82% 0.1 102.8) |
| XYZ | xyz(23.3617, 26.2963, 8.6946) |
| Luminance | 0.2630 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 4.00
Drab
#828344
ΔE00 6.25
Dark Sand
#A88F59
ΔE00 7.71
Baby Poop Green
#8F9805
ΔE00 7.88
Pea Soup
#929901
ΔE00 7.93
Olive
#808000
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978E40 #404997
analogous
#976340 #978E40 #759740
triadic
#978E40 #40978E #8E4097
tetradic
#978E40 #409763 #404997 #974075
square
#978E40 #409763 #404997 #974075
split-complementary
#978E40 #407597 #634097
monochromatic
#413D1C #6C662E #978E40 #B9B05B #CCC486
Accessibility & contrast
On white
3.36
#978E40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.26
#978E40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978E40
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978E40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978E40 | 1.00 | 3.36 | 6.26 | 6.26 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8A38
Deuteranopia (green-blind)
#9C8E44
Tritanopia (blue-blind)
#A1857D
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978e40; /* rgb */ color: rgb(151, 142, 64); /* oklch */ color: oklch(63.8% 0.100 102.8);
Tailwind
colors: {
custom: {
50: '#b8ae78',
500: '#978e40',
950: '#000000',
},
}SCSS
$custom: #978e40; $custom-light: #b8ae78; $custom-dark: #000000;
JSON
{
"hex": "#978e40",
"rgb": {
"r": 151,
"g": 142,
"b": 64
},
"hsl": {
"h": 53.793,
"s": 40.465,
"l": 42.157
},
"oklch": {
"l": 0.63821,
"c": 0.10015,
"h": 102.8
},
"luminance": 0.26295
}Semantic roles & 50–950 ramp
primary
#978E40
secondary
#7D83B6
accent
#64D057
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B