#978C22#978C22
#978C22 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.121 H 103.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #978C22 |
|---|---|
| RGB | rgb(151, 140, 34) |
| HSL | hsl(54, 63%, 36%) |
| HSV | hsv(54, 77%, 59%) |
| CMYK | cmyk(0%, 7.3%, 77.5%, 40.8%) |
| CIE-LAB | lab(57.51, -7.88, 53.98) |
| CIE-LCH | lch(57.51, 54.55, 98.31°) |
| OKLab | oklab(63.1% -0.0276 0.1181) |
| OKLCH | oklch(63.1% 0.121 103.2) |
| XYZ | xyz(22.4303, 25.4519, 5.2443) |
| Luminance | 0.2545 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.78
Diarrhea
#9F8303
ΔE00 5.78
Olive
#808000
ΔE00 6.12
Baby Shit Brown
#AD900D
ΔE00 6.20
Pea Soup
#929901
ΔE00 6.23
Dark Mustard
#A88905
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C22 #222D97
analogous
#975222 #978C22 #689722
triadic
#978C22 #22978C #8C2297
tetradic
#978C22 #229752 #222D97 #972268
square
#978C22 #229752 #222D97 #972268
split-complementary
#978C22 #226897 #522297
monochromatic
#332F0C #655E17 #978C22 #C9BA2D #DACE5A
Accessibility & contrast
On white
3.45
#978C22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#978C22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C22
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C22 | 1.00 | 3.45 | 6.09 | 6.09 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#99870A
Deuteranopia (green-blind)
#9D8C2A
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c22; /* rgb */ color: rgb(151, 140, 34); /* oklch */ color: oklch(63.1% 0.121 103.2);
Tailwind
colors: {
custom: {
50: '#b9ad66',
500: '#978c22',
950: '#000000',
},
}SCSS
$custom: #978c22; $custom-light: #b9ad66; $custom-dark: #000000;
JSON
{
"hex": "#978c22",
"rgb": {
"r": 151,
"g": 140,
"b": 34
},
"hsl": {
"h": 54.359,
"s": 63.243,
"l": 36.275
},
"oklch": {
"l": 0.63104,
"c": 0.12128,
"h": 103.2
},
"luminance": 0.25451
}Semantic roles & 50–950 ramp
primary
#978C22
secondary
#5760BE
accent
#51E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A