#797C2F#797C2F
#797C2F is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.100 H 111.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #797C2F |
|---|---|
| RGB | rgb(121, 124, 47) |
| HSL | hsl(62, 45%, 34%) |
| HSV | hsv(62, 62%, 49%) |
| CMYK | cmyk(2.4%, 0%, 62.1%, 51.4%) |
| CIE-LAB | lab(50.32, -12.06, 40.53) |
| CIE-LCH | lch(50.32, 42.28, 106.57°) |
| OKLab | oklab(56.75% -0.0362 0.093) |
| OKLCH | oklch(56.75% 0.1 111.3) |
| XYZ | xyz(15.6063, 18.6858, 5.4734) |
| Luminance | 0.1868 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.36
Drab
#828344
ΔE00 3.99
Olive (survey)
#6E750E
ΔE00 4.43
Murky Green
#6C7A0E
ΔE00 4.53
Poop Green
#6F7C00
ΔE00 4.91
Shit Green
#758000
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C2F #322F7C
analogous
#7C582F #797C2F #527C2F
triadic
#797C2F #2F797C #7C2F79
tetradic
#797C2F #2F7C58 #322F7C #7C2F52
square
#797C2F #2F7C58 #322F7C #7C2F52
split-complementary
#797C2F #2F527C #582F7C
monochromatic
#22230D #4E501E #797C2F #A4A840 #C0C362
Accessibility & contrast
On white
4.43
#797C2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#797C2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C2F
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C2F | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857726
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797c2f; /* rgb */ color: rgb(121, 124, 47); /* oklch */ color: oklch(56.8% 0.100 111.3);
Tailwind
colors: {
custom: {
50: '#a2a16b',
500: '#797c2f',
950: '#000000',
},
}SCSS
$custom: #797c2f; $custom-light: #a2a16b; $custom-dark: #000000;
JSON
{
"hex": "#797c2f",
"rgb": {
"r": 121,
"g": 124,
"b": 47
},
"hsl": {
"h": 62.338,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.56754,
"c": 0.09975,
"h": 111.3
},
"luminance": 0.18685
}Semantic roles & 50–950 ramp
primary
#797C2F
secondary
#5F5CAA
accent
#53D558
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A