#797D2F#797D2F
#797D2F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.101 H 111.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #797D2F |
|---|---|
| RGB | rgb(121, 125, 47) |
| HSL | hsl(63, 45%, 34%) |
| HSV | hsv(63, 62%, 49%) |
| CMYK | cmyk(3.2%, 0%, 62.4%, 51%) |
| CIE-LAB | lab(50.61, -12.60, 40.85) |
| CIE-LCH | lch(50.61, 42.75, 107.14°) |
| OKLab | oklab(56.99% -0.0377 0.0936) |
| OKLCH | oklch(56.99% 0.101 111.9) |
| XYZ | xyz(15.7323, 18.9378, 5.5154) |
| Luminance | 0.1894 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.56
Drab
#828344
ΔE00 3.89
Murky Green
#6C7A0E
ΔE00 4.42
Olive (survey)
#6E750E
ΔE00 4.54
Poop Green
#6F7C00
ΔE00 4.77
Shit Green
#758000
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D2F #332F7D
analogous
#7D5A2F #797D2F #527D2F
triadic
#797D2F #2F797D #7D2F79
tetradic
#797D2F #2F7D5A #332F7D #7D2F52
square
#797D2F #2F7D5A #332F7D #7D2F52
split-complementary
#797D2F #2F527D #5A2F7D
monochromatic
#23240E #4E511E #797D2F #A4A940 #BFC462
Accessibility & contrast
On white
4.39
#797D2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#797D2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D2F
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D2F | 1.00 | 4.39 | 4.79 | 4.79 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d2f; /* rgb */ color: rgb(121, 125, 47); /* oklch */ color: oklch(57.0% 0.101 111.9);
Tailwind
colors: {
custom: {
50: '#a2a26b',
500: '#797d2f',
950: '#000000',
},
}SCSS
$custom: #797d2f; $custom-light: #a2a26b; $custom-dark: #000000;
JSON
{
"hex": "#797d2f",
"rgb": {
"r": 121,
"g": 125,
"b": 47
},
"hsl": {
"h": 63.077,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.56991,
"c": 0.10095,
"h": 111.9
},
"luminance": 0.18937
}Semantic roles & 50–950 ramp
primary
#797D2F
secondary
#615DAB
accent
#53D559
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A