#797E2F#797E2F
#797E2F is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.102 H 112.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #797E2F |
|---|---|
| RGB | rgb(121, 126, 47) |
| HSL | hsl(64, 46%, 34%) |
| HSV | hsv(64, 63%, 49%) |
| CMYK | cmyk(4%, 0%, 62.7%, 50.6%) |
| CIE-LAB | lab(50.91, -13.14, 41.17) |
| CIE-LCH | lch(50.91, 43.22, 107.70°) |
| OKLab | oklab(57.23% -0.0393 0.0943) |
| OKLCH | oklch(57.23% 0.102 112.6) |
| XYZ | xyz(15.8595, 19.1922, 5.5578) |
| Luminance | 0.1919 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.80
Drab
#828344
ΔE00 3.84
Murky Green
#6C7A0E
ΔE00 4.36
Shit Green
#758000
ΔE00 4.63
Poop Green
#6F7C00
ΔE00 4.66
Olive (survey)
#6E750E
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E2F #342F7E
analogous
#7E5C2F #797E2F #527E2F
triadic
#797E2F #2F797E #7E2F79
tetradic
#797E2F #2F7E5C #342F7E #7E2F52
square
#797E2F #2F7E5C #342F7E #7E2F52
split-complementary
#797E2F #2F527E #5C2F7E
monochromatic
#23250E #4E511E #797E2F #A4AB40 #BEC563
Accessibility & contrast
On white
4.34
#797E2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.84
#797E2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E2F
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E2F | 1.00 | 4.34 | 4.84 | 4.84 |
| #FFFFFF | 4.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877826
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e2f; /* rgb */ color: rgb(121, 126, 47); /* oklch */ color: oklch(57.2% 0.102 112.6);
Tailwind
colors: {
custom: {
50: '#a2a36b',
500: '#797e2f',
950: '#000000',
},
}SCSS
$custom: #797e2f; $custom-light: #a2a36b; $custom-dark: #000000;
JSON
{
"hex": "#797e2f",
"rgb": {
"r": 121,
"g": 126,
"b": 47
},
"hsl": {
"h": 63.797,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.57228,
"c": 0.10216,
"h": 112.6
},
"luminance": 0.19192
}Semantic roles & 50–950 ramp
primary
#797E2F
secondary
#625DAC
accent
#52D55B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A