#797E40#797E40
#797E40 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.085 H 112.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #797E40 |
|---|---|
| RGB | rgb(121, 126, 64) |
| HSL | hsl(65, 33%, 37%) |
| HSV | hsv(65, 49%, 49%) |
| CMYK | cmyk(4%, 0%, 49.2%, 50.6%) |
| CIE-LAB | lab(51.10, -11.60, 32.88) |
| CIE-LCH | lch(51.10, 34.87, 109.44°) |
| OKLab | oklab(57.44% -0.033 0.0784) |
| OKLCH | oklch(57.44% 0.085 112.8) |
| XYZ | xyz(16.2717, 19.3571, 7.7286) |
| Luminance | 0.1936 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.58
Olive Drab
#6F7632
ΔE00 3.62
Khaki Green
#728639
ΔE00 4.81
Military Green
#667C3E
ΔE00 5.35
Muddy Green
#657432
ΔE00 5.58
Swamp
#698339
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E40 #45407E
analogous
#7E6440 #797E40 #5A7E40
triadic
#797E40 #40797E #7E4079
tetradic
#797E40 #407E64 #45407E #7E405A
square
#797E40 #407E64 #45407E #7E405A
split-complementary
#797E40 #405A7E #64407E
monochromatic
#2B2D17 #52552B #797E40 #A0A755 #B7BC7C
Accessibility & contrast
On white
4.31
#797E40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#797E40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E40
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E40 | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86793B
Deuteranopia (green-blind)
#867A43
Tritanopia (blue-blind)
#807870
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797e40; /* rgb */ color: rgb(121, 126, 64); /* oklch */ color: oklch(57.4% 0.085 112.8);
Tailwind
colors: {
custom: {
50: '#a1a376',
500: '#797e40',
950: '#000000',
},
}SCSS
$custom: #797e40; $custom-light: #a1a376; $custom-dark: #000000;
JSON
{
"hex": "#797e40",
"rgb": {
"r": 121,
"g": 126,
"b": 64
},
"hsl": {
"h": 64.839,
"s": 32.632,
"l": 37.255
},
"oklch": {
"l": 0.57443,
"c": 0.08505,
"h": 112.8
},
"luminance": 0.19357
}Semantic roles & 50–950 ramp
primary
#797E40
secondary
#7773A7
accent
#5FC968
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B