#978F20#978F20
#978F20 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.125 H 105.1°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #978F20 |
|---|---|
| RGB | rgb(151, 143, 32) |
| HSL | hsl(56, 65%, 36%) |
| HSV | hsv(56, 79%, 59%) |
| CMYK | cmyk(0%, 5.3%, 78.8%, 40.8%) |
| CIE-LAB | lab(58.35, -9.58, 55.42) |
| CIE-LCH | lch(58.35, 56.24, 99.81°) |
| OKLab | oklab(63.77% -0.0326 0.1208) |
| OKLCH | oklch(63.77% 0.125 105.1) |
| XYZ | xyz(22.8467, 26.3294, 5.2449) |
| Luminance | 0.2633 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 4.97
Baby Poop Green
#8F9805
ΔE00 5.11
Baby Poo
#AB9004
ΔE00 6.14
Baby Shit Green
#889717
ΔE00 6.20
Olive
#808000
ΔE00 6.42
Baby Shit Brown
#AD900D
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978F20 #202897
analogous
#975320 #978F20 #639720
triadic
#978F20 #20978F #8F2097
tetradic
#978F20 #209753 #202897 #972063
square
#978F20 #209753 #202897 #972063
split-complementary
#978F20 #206397 #532097
monochromatic
#322F0B #645F15 #978F20 #C9BF2B #DBD256
Accessibility & contrast
On white
3.35
#978F20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#978F20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978F20
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978F20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978F20 | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9C8A03
Deuteranopia (green-blind)
#9F8E29
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978f20; /* rgb */ color: rgb(151, 143, 32); /* oklch */ color: oklch(63.8% 0.125 105.1);
Tailwind
colors: {
custom: {
50: '#b9af66',
500: '#978f20',
950: '#000000',
},
}SCSS
$custom: #978f20; $custom-light: #b9af66; $custom-dark: #000000;
JSON
{
"hex": "#978f20",
"rgb": {
"r": 151,
"g": 143,
"b": 32
},
"hsl": {
"h": 55.966,
"s": 65.027,
"l": 35.882
},
"oklch": {
"l": 0.63766,
"c": 0.12509,
"h": 105.1
},
"luminance": 0.26329
}Semantic roles & 50–950 ramp
primary
#978F20
secondary
#545BBF
accent
#4BE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A