#797F41#797F41
#797F41 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.7% C 0.085 H 113.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #797F41 |
|---|---|
| RGB | rgb(121, 127, 65) |
| HSL | hsl(66, 32%, 38%) |
| HSV | hsv(66, 49%, 50%) |
| CMYK | cmyk(4.7%, 0%, 48.8%, 50.2%) |
| CIE-LAB | lab(51.41, -12.04, 32.73) |
| CIE-LCH | lch(51.41, 34.88, 110.20°) |
| OKLab | oklab(57.69% -0.0342 0.0781) |
| OKLCH | oklch(57.69% 0.085 113.6) |
| XYZ | xyz(16.4289, 19.6256, 7.9227) |
| Luminance | 0.1963 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.50
Olive Drab
#6F7632
ΔE00 3.91
Khaki Green
#728639
ΔE00 4.47
Military Green
#667C3E
ΔE00 5.19
Swamp
#698339
ΔE00 5.37
Dirty Green
#667E2C
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F41 #47417F
analogous
#7F6641 #797F41 #5A7F41
triadic
#797F41 #41797F #7F4179
tetradic
#797F41 #417F66 #47417F #7F415A
square
#797F41 #417F66 #47417F #7F415A
split-complementary
#797F41 #415A7F #66417F
monochromatic
#2C2E18 #52572C #797F41 #A0A756 #B7BD7E
Accessibility & contrast
On white
4.26
#797F41 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#797F41 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F41
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F41 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F41 | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877A3C
Deuteranopia (green-blind)
#877B44
Tritanopia (blue-blind)
#807971
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f41; /* rgb */ color: rgb(121, 127, 65); /* oklch */ color: oklch(57.7% 0.085 113.6);
Tailwind
colors: {
custom: {
50: '#a1a477',
500: '#797f41',
950: '#000000',
},
}SCSS
$custom: #797f41; $custom-light: #a1a477; $custom-dark: #000000;
JSON
{
"hex": "#797f41",
"rgb": {
"r": 121,
"g": 127,
"b": 65
},
"hsl": {
"h": 65.806,
"s": 32.292,
"l": 37.647
},
"oklch": {
"l": 0.57693,
"c": 0.08527,
"h": 113.6
},
"luminance": 0.19625
}Semantic roles & 50–950 ramp
primary
#797F41
secondary
#7974A7
accent
#5FC86A
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F09
muted
#7F7F7B