#797F2F#797F2F
#797F2F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.103 H 113.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #797F2F |
|---|---|
| RGB | rgb(121, 127, 47) |
| HSL | hsl(65, 46%, 34%) |
| HSV | hsv(65, 63%, 50%) |
| CMYK | cmyk(4.7%, 0%, 63%, 50.2%) |
| CIE-LAB | lab(51.21, -13.68, 41.50) |
| CIE-LCH | lch(51.21, 43.70, 108.25°) |
| OKLab | oklab(57.47% -0.0408 0.095) |
| OKLCH | oklch(57.47% 0.103 113.2) |
| XYZ | xyz(15.9880, 19.4492, 5.6006) |
| Luminance | 0.1945 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 3.83
Olive Drab
#6F7632
ΔE00 4.07
Murky Green
#6C7A0E
ΔE00 4.34
Khaki Green
#728639
ΔE00 4.45
Shit Green
#758000
ΔE00 4.48
Poop Green
#6F7C00
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F2F #352F7F
analogous
#7F5D2F #797F2F #517F2F
triadic
#797F2F #2F797F #7F2F79
tetradic
#797F2F #2F7F5D #352F7F #7F2F51
square
#797F2F #2F7F5D #352F7F #7F2F51
split-complementary
#797F2F #2F517F #5D2F7F
monochromatic
#24260E #4E521E #797F2F #A4AC40 #BEC563
Accessibility & contrast
On white
4.29
#797F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#797F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F2F
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F2F | 1.00 | 4.29 | 4.89 | 4.89 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f2f; /* rgb */ color: rgb(121, 127, 47); /* oklch */ color: oklch(57.5% 0.103 113.2);
Tailwind
colors: {
custom: {
50: '#a2a46b',
500: '#797f2f',
950: '#000000',
},
}SCSS
$custom: #797f2f; $custom-light: #a2a46b; $custom-dark: #000000;
JSON
{
"hex": "#797f2f",
"rgb": {
"r": 121,
"g": 127,
"b": 47
},
"hsl": {
"h": 64.5,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.57466,
"c": 0.10338,
"h": 113.2
},
"luminance": 0.19449
}Semantic roles & 50–950 ramp
primary
#797F2F
secondary
#635EAC
accent
#52D65C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A