#979E21#979E21
#979E21 is a light, vivid yellow. Relative luminance 0.311; OKLCH L 67.2% C 0.140 H 112.9°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #979E21 |
|---|---|
| RGB | rgb(151, 158, 33) |
| HSL | hsl(63, 65%, 37%) |
| HSV | hsv(63, 79%, 62%) |
| CMYK | cmyk(4.4%, 0%, 79.1%, 38%) |
| CIE-LAB | lab(62.63, -17.43, 58.96) |
| CIE-LCH | lch(62.63, 61.48, 106.47°) |
| OKLab | oklab(67.19% -0.0544 0.1285) |
| OKLCH | oklch(67.19% 0.14 112.9) |
| XYZ | xyz(25.2647, 31.1434, 6.1189) |
| Luminance | 0.3114 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 2.12
Baby Poop Green
#8F9805
ΔE00 2.35
Vomit
#A2A415
ΔE00 2.97
Pea Soup Green
#94A617
ΔE00 3.18
Baby Shit Green
#889717
ΔE00 3.40
Puke
#A5A502
ΔE00 4.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#979E21 #28219E
analogous
#9E6721 #979E21 #599E21
triadic
#979E21 #21979E #9E2197
tetradic
#979E21 #219E67 #28219E #9E2159
square
#979E21 #219E67 #28219E #9E2159
split-complementary
#979E21 #21599E #67219E
monochromatic
#36390C #676B16 #979E21 #C7D12C #D6DD5C
Accessibility & contrast
On white
2.91
#979E21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.23
#979E21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #979E21
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##979E21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##979E21 | 1.00 | 2.91 | 7.23 | 7.23 |
| #FFFFFF | 2.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#AA992D
Tritanopia (blue-blind)
#A29487
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #979e21; /* rgb */ color: rgb(151, 158, 33); /* oklch */ color: oklch(67.2% 0.140 112.9);
Tailwind
colors: {
custom: {
50: '#b9ba68',
500: '#979e21',
950: '#000000',
},
}SCSS
$custom: #979e21; $custom-light: #b9ba68; $custom-dark: #000000;
JSON
{
"hex": "#979e21",
"rgb": {
"r": 151,
"g": 158,
"b": 33
},
"hsl": {
"h": 63.36,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.67186,
"c": 0.13955,
"h": 112.9
},
"luminance": 0.31143
}Semantic roles & 50–950 ramp
primary
#979E21
secondary
#5F59C1
accent
#3FE849
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A