#797F40#797F40
#797F40 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.7% C 0.086 H 113.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #797F40 |
|---|---|
| RGB | rgb(121, 127, 64) |
| HSL | hsl(66, 33%, 37%) |
| HSV | hsv(66, 50%, 50%) |
| CMYK | cmyk(4.7%, 0%, 49.6%, 50.2%) |
| CIE-LAB | lab(51.40, -12.15, 33.24) |
| CIE-LCH | lch(51.40, 35.39, 110.08°) |
| OKLab | oklab(57.68% -0.0346 0.0792) |
| OKLCH | oklch(57.68% 0.086 113.6) |
| XYZ | xyz(16.4002, 19.6141, 7.7714) |
| Luminance | 0.1961 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.48
Olive Drab
#6F7632
ΔE00 3.84
Khaki Green
#728639
ΔE00 4.39
Military Green
#667C3E
ΔE00 5.23
Swamp
#698339
ΔE00 5.34
Dirty Green
#667E2C
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F40 #46407F
analogous
#7F6540 #797F40 #5A7F40
triadic
#797F40 #40797F #7F4079
tetradic
#797F40 #407F65 #46407F #7F405A
square
#797F40 #407F65 #46407F #7F405A
split-complementary
#797F40 #405A7F #65407F
monochromatic
#2B2E17 #52562B #797F40 #A0A855 #B7BD7C
Accessibility & contrast
On white
4.27
#797F40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#797F40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F40
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F40 | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#877B43
Tritanopia (blue-blind)
#807970
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f40; /* rgb */ color: rgb(121, 127, 64); /* oklch */ color: oklch(57.7% 0.086 113.6);
Tailwind
colors: {
custom: {
50: '#a1a476',
500: '#797f40',
950: '#000000',
},
}SCSS
$custom: #797f40; $custom-light: #a1a476; $custom-dark: #000000;
JSON
{
"hex": "#797f40",
"rgb": {
"r": 121,
"g": 127,
"b": 64
},
"hsl": {
"h": 65.714,
"s": 32.984,
"l": 37.451
},
"oklch": {
"l": 0.57679,
"c": 0.08638,
"h": 113.6
},
"luminance": 0.19614
}Semantic roles & 50–950 ramp
primary
#797F40
secondary
#7873A8
accent
#5FC969
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B