#797E20#797E20
#797E20 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.114 H 112.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #797E20 |
|---|---|
| RGB | rgb(121, 126, 32) |
| HSL | hsl(63, 59%, 31%) |
| HSV | hsv(63, 75%, 49%) |
| CMYK | cmyk(4%, 0%, 74.6%, 50.6%) |
| CIE-LAB | lab(50.79, -14.11, 47.43) |
| CIE-LCH | lch(50.79, 49.48, 106.56°) |
| OKLab | oklab(57.1% -0.0436 0.105) |
| OKLCH | oklch(57.1% 0.114 112.5) |
| XYZ | xyz(15.6072, 19.0913, 4.2291) |
| Luminance | 0.1909 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.73
Poop Green
#6F7C00
ΔE00 3.08
Murky Green
#6C7A0E
ΔE00 3.36
Olive
#808000
ΔE00 3.47
Olive (survey)
#6E750E
ΔE00 3.78
Swamp Green
#748500
ΔE00 4.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E20 #25207E
analogous
#7E5420 #797E20 #4A7E20
triadic
#797E20 #20797E #7E2079
tetradic
#797E20 #207E54 #25207E #7E204A
square
#797E20 #207E54 #25207E #7E204A
split-complementary
#797E20 #204A7E #54207E
monochromatic
#1B1C07 #4A4D14 #797E20 #A8AF2C #C9D048
Accessibility & contrast
On white
4.36
#797E20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#797E20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E20
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E20 | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88780E
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#82766C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e20; /* rgb */ color: rgb(121, 126, 32); /* oklch */ color: oklch(57.1% 0.114 112.5);
Tailwind
colors: {
custom: {
50: '#a3a363',
500: '#797e20',
950: '#000000',
},
}SCSS
$custom: #797e20; $custom-light: #a3a363; $custom-dark: #000000;
JSON
{
"hex": "#797e20",
"rgb": {
"r": 121,
"g": 126,
"b": 32
},
"hsl": {
"h": 63.191,
"s": 59.494,
"l": 30.98
},
"oklch": {
"l": 0.57097,
"c": 0.11367,
"h": 112.5
},
"luminance": 0.19091
}Semantic roles & 50–950 ramp
primary
#797E20
secondary
#4E49B1
accent
#45E34E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A