#797E39#797E39
#797E39 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.093 H 112.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #797E39 |
|---|---|
| RGB | rgb(121, 126, 57) |
| HSL | hsl(64, 38%, 36%) |
| HSV | hsv(64, 55%, 49%) |
| CMYK | cmyk(4%, 0%, 54.8%, 50.6%) |
| CIE-LAB | lab(51.02, -12.30, 36.41) |
| CIE-LCH | lch(51.02, 38.43, 108.66°) |
| OKLab | oklab(57.35% -0.0357 0.0854) |
| OKLCH | oklch(57.35% 0.093 112.7) |
| XYZ | xyz(16.0849, 19.2824, 6.7446) |
| Luminance | 0.1928 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.81
Olive Drab
#6F7632
ΔE00 3.35
Khaki Green
#728639
ΔE00 4.52
Dirty Green
#667E2C
ΔE00 5.35
Muddy Green
#657432
ΔE00 5.61
Swamp
#698339
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E39 #3E397E
analogous
#7E6039 #797E39 #567E39
triadic
#797E39 #39797E #7E3979
tetradic
#797E39 #397E60 #3E397E #7E3956
square
#797E39 #397E60 #3E397E #7E3956
split-complementary
#797E39 #39567E #60397E
monochromatic
#282A13 #515426 #797E39 #A1A84C #BABF72
Accessibility & contrast
On white
4.32
#797E39 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#797E39 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E39
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E39 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E39 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877932
Deuteranopia (green-blind)
#877A3D
Tritanopia (blue-blind)
#80776F
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e39; /* rgb */ color: rgb(121, 126, 57); /* oklch */ color: oklch(57.3% 0.093 112.7);
Tailwind
colors: {
custom: {
50: '#a1a372',
500: '#797e39',
950: '#000000',
},
}SCSS
$custom: #797e39; $custom-light: #a1a372; $custom-dark: #000000;
JSON
{
"hex": "#797e39",
"rgb": {
"r": 121,
"g": 126,
"b": 57
},
"hsl": {
"h": 64.348,
"s": 37.705,
"l": 35.882
},
"oklch": {
"l": 0.57346,
"c": 0.09257,
"h": 112.7
},
"luminance": 0.19282
}Semantic roles & 50–950 ramp
primary
#797E39
secondary
#6F6AA8
accent
#5ACE63
background
#FAFAF7
surface
#F4F3ED
border
#CECDC8
text
#0F0F08
muted
#7F7F7B