#797E2A#797E2A
#797E2A is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.106 H 112.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #797E2A |
|---|---|
| RGB | rgb(121, 126, 42) |
| HSL | hsl(64, 50%, 33%) |
| HSV | hsv(64, 67%, 49%) |
| CMYK | cmyk(4%, 0%, 66.7%, 50.6%) |
| CIE-LAB | lab(50.87, -13.51, 43.40) |
| CIE-LCH | lch(50.87, 45.45, 107.29°) |
| OKLab | oklab(57.18% -0.0408 0.0983) |
| OKLCH | oklch(57.18% 0.106 112.6) |
| XYZ | xyz(15.7644, 19.1542, 5.0567) |
| Luminance | 0.1915 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Murky Green
#6C7A0E
ΔE00 3.89
Shit Green
#758000
ΔE00 3.91
Poop Green
#6F7C00
ΔE00 4.02
Olive Drab
#6F7632
ΔE00 4.22
Olive (survey)
#6E750E
ΔE00 4.27
Drab
#828344
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E2A #2F2A7E
analogous
#7E592A #797E2A #4F7E2A
triadic
#797E2A #2A797E #7E2A79
tetradic
#797E2A #2A7E59 #2F2A7E #7E2A4F
square
#797E2A #2A7E59 #2F2A7E #7E2A4F
split-complementary
#797E2A #2A4F7E #592A7E
monochromatic
#21220B #4D501B #797E2A #A5AC39 #C2C85A
Accessibility & contrast
On white
4.35
#797E2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.83
#797E2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E2A
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E2A | 1.00 | 4.35 | 4.83 | 4.83 |
| #FFFFFF | 4.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87781F
Deuteranopia (green-blind)
#887A30
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e2a; /* rgb */ color: rgb(121, 126, 42); /* oklch */ color: oklch(57.2% 0.106 112.6);
Tailwind
colors: {
custom: {
50: '#a2a368',
500: '#797e2a',
950: '#000000',
},
}SCSS
$custom: #797e2a; $custom-light: #a2a368; $custom-dark: #000000;
JSON
{
"hex": "#797e2a",
"rgb": {
"r": 121,
"g": 126,
"b": 42
},
"hsl": {
"h": 63.571,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.57179,
"c": 0.1064,
"h": 112.6
},
"luminance": 0.19154
}Semantic roles & 50–950 ramp
primary
#797E2A
secondary
#5B56AE
accent
#4EDA57
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A