#978E22#978E22
#978E22 is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.6% C 0.123 H 104.4°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #978E22 |
|---|---|
| RGB | rgb(151, 142, 34) |
| HSL | hsl(55, 63%, 36%) |
| HSV | hsv(55, 77%, 59%) |
| CMYK | cmyk(0%, 6%, 77.5%, 40.8%) |
| CIE-LAB | lab(58.08, -8.96, 54.50) |
| CIE-LCH | lch(58.08, 55.23, 99.34°) |
| OKLab | oklab(63.55% -0.0307 0.1192) |
| OKLCH | oklch(63.55% 0.123 104.4) |
| XYZ | xyz(22.7252, 26.0417, 5.3426) |
| Luminance | 0.2604 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.43
Baby Poop Green
#8F9805
ΔE00 5.55
Baby Poo
#AB9004
ΔE00 6.04
Olive
#808000
ΔE00 6.31
Baby Shit Brown
#AD900D
ΔE00 6.50
Diarrhea
#9F8303
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978E22 #222B97
analogous
#975422 #978E22 #669722
triadic
#978E22 #22978E #8E2297
tetradic
#978E22 #229754 #222B97 #972266
square
#978E22 #229754 #222B97 #972266
split-complementary
#978E22 #226697 #542297
monochromatic
#33300C #655F17 #978E22 #C9BD2D #DAD05A
Accessibility & contrast
On white
3.38
#978E22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.21
#978E22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978E22
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978E22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978E22 | 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)
#9B8909
Deuteranopia (green-blind)
#9E8E2A
Tritanopia (blue-blind)
#A3847A
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978e22; /* rgb */ color: rgb(151, 142, 34); /* oklch */ color: oklch(63.6% 0.123 104.4);
Tailwind
colors: {
custom: {
50: '#b9ae66',
500: '#978e22',
950: '#000000',
},
}SCSS
$custom: #978e22; $custom-light: #b9ae66; $custom-dark: #000000;
JSON
{
"hex": "#978e22",
"rgb": {
"r": 151,
"g": 142,
"b": 34
},
"hsl": {
"h": 55.385,
"s": 63.243,
"l": 36.275
},
"oklch": {
"l": 0.63553,
"c": 0.12309,
"h": 104.4
},
"luminance": 0.26041
}Semantic roles & 50–950 ramp
primary
#978E22
secondary
#575FBE
accent
#4EE642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A