#978E20#978E20
#978E20 is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.5% C 0.124 H 104.5°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #978E20 |
|---|---|
| RGB | rgb(151, 142, 32) |
| HSL | hsl(55, 65%, 36%) |
| HSV | hsv(55, 79%, 59%) |
| CMYK | cmyk(0%, 6%, 78.8%, 40.8%) |
| CIE-LAB | lab(58.07, -9.05, 55.16) |
| CIE-LCH | lch(58.07, 55.90, 99.31°) |
| OKLab | oklab(63.54% -0.0311 0.1202) |
| OKLCH | oklch(63.54% 0.124 104.5) |
| XYZ | xyz(22.6972, 26.0305, 5.1950) |
| Luminance | 0.2603 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.36
Baby Poop Green
#8F9805
ΔE00 5.50
Baby Poo
#AB9004
ΔE00 5.97
Olive
#808000
ΔE00 6.29
Baby Shit Brown
#AD900D
ΔE00 6.45
Diarrhea
#9F8303
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978E20 #202997
analogous
#975220 #978E20 #649720
triadic
#978E20 #20978E #8E2097
tetradic
#978E20 #209752 #202997 #972064
square
#978E20 #209752 #202997 #972064
split-complementary
#978E20 #206497 #522097
monochromatic
#322F0B #645F15 #978E20 #C9BD2B #DBD156
Accessibility & contrast
On white
3.38
#978E20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.21
#978E20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978E20
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978E20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978E20 | 1.00 | 3.38 | 6.21 | 6.21 |
| #FFFFFF | 3.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8903
Deuteranopia (green-blind)
#9E8E29
Tritanopia (blue-blind)
#A38479
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978e20; /* rgb */ color: rgb(151, 142, 32); /* oklch */ color: oklch(63.5% 0.124 104.5);
Tailwind
colors: {
custom: {
50: '#b9ae66',
500: '#978e20',
950: '#000000',
},
}SCSS
$custom: #978e20; $custom-light: #b9ae66; $custom-dark: #000000;
JSON
{
"hex": "#978e20",
"rgb": {
"r": 151,
"g": 142,
"b": 32
},
"hsl": {
"h": 55.462,
"s": 65.027,
"l": 35.882
},
"oklch": {
"l": 0.63541,
"c": 0.12418,
"h": 104.5
},
"luminance": 0.2603
}Semantic roles & 50–950 ramp
primary
#978E20
secondary
#545CBF
accent
#4DE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A