#797E42#797E42
#797E42 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.083 H 112.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #797E42 |
|---|---|
| RGB | rgb(121, 126, 66) |
| HSL | hsl(65, 31%, 38%) |
| HSV | hsv(65, 48%, 49%) |
| CMYK | cmyk(4%, 0%, 47.6%, 50.6%) |
| CIE-LAB | lab(51.13, -11.39, 31.86) |
| CIE-LCH | lch(51.13, 33.83, 109.67°) |
| OKLab | oklab(57.47% -0.0322 0.0763) |
| OKLCH | oklch(57.47% 0.083 112.9) |
| XYZ | xyz(16.3296, 19.3803, 8.0337) |
| Luminance | 0.1938 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.65
Olive Drab
#6F7632
ΔE00 3.81
Khaki Green
#728639
ΔE00 4.97
Military Green
#667C3E
ΔE00 5.29
Muddy Green
#657432
ΔE00 5.64
Swamp
#698339
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E42 #47427E
analogous
#7E6542 #797E42 #5B7E42
triadic
#797E42 #42797E #7E4279
tetradic
#797E42 #427E65 #47427E #7E425B
square
#797E42 #427E65 #47427E #7E425B
split-complementary
#797E42 #425B7E #65427E
monochromatic
#2C2E18 #52562D #797E42 #A0A657 #B7BC7F
Accessibility & contrast
On white
4.31
#797E42 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#797E42 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E42
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E42 | 1.00 | 4.31 | 4.88 | 4.88 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86793D
Deuteranopia (green-blind)
#867B45
Tritanopia (blue-blind)
#807870
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797e42; /* rgb */ color: rgb(121, 126, 66); /* oklch */ color: oklch(57.5% 0.083 112.9);
Tailwind
colors: {
custom: {
50: '#a1a378',
500: '#797e42',
950: '#000000',
},
}SCSS
$custom: #797e42; $custom-light: #a1a378; $custom-dark: #000000;
JSON
{
"hex": "#797e42",
"rgb": {
"r": 121,
"g": 126,
"b": 66
},
"hsl": {
"h": 65,
"s": 31.25,
"l": 37.647
},
"oklch": {
"l": 0.57473,
"c": 0.08278,
"h": 112.9
},
"luminance": 0.1938
}Semantic roles & 50–950 ramp
primary
#797E42
secondary
#7975A7
accent
#60C769
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F09
muted
#7F7F7B