#798E51#798E51
#798E51 is a mid, moderate yellow-green. Relative luminance 0.240; OKLCH L 61.5% C 0.089 H 124.5°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #798E51 |
|---|---|
| RGB | rgb(121, 142, 81) |
| HSL | hsl(81, 27%, 44%) |
| HSV | hsv(81, 43%, 56%) |
| CMYK | cmyk(14.8%, 0%, 43%, 44.3%) |
| CIE-LAB | lab(56.09, -18.17, 30.00) |
| CIE-LCH | lch(56.09, 35.07, 121.20°) |
| OKLab | oklab(61.51% -0.0502 0.0731) |
| OKLCH | oklch(61.51% 0.089 124.5) |
| XYZ | xyz(19.0433, 24.0049, 11.4131) |
| Luminance | 0.2401 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Camo
#7F8F4E
ΔE00 1.88
Drab Green
#749551
ΔE00 3.21
Moss
#769958
ΔE00 4.29
Khaki Green
#728639
ΔE00 4.58
Moss Green
#8A9A5B
ΔE00 4.65
Swamp
#698339
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#798E51 #66518E
analogous
#8E8451 #798E51 #5A8E51
triadic
#798E51 #51798E #8E5179
tetradic
#798E51 #518E84 #66518E #8E515A
square
#798E51 #518E84 #66518E #8E515A
split-complementary
#798E51 #515A8E #84518E
monochromatic
#374025 #58673B #798E51 #98AD6F #B4C396
Accessibility & contrast
On white
3.62
#798E51 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#798E51 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #798E51
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##798E51 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##798E51 | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#94874C
Deuteranopia (green-blind)
#918654
Tritanopia (blue-blind)
#7D897F
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #798e51; /* rgb */ color: rgb(121, 142, 81); /* oklch */ color: oklch(61.5% 0.089 124.5);
Tailwind
colors: {
custom: {
50: '#a1af83',
500: '#798e51',
950: '#000000',
},
}SCSS
$custom: #798e51; $custom-light: #a1af83; $custom-dark: #000000;
JSON
{
"hex": "#798e51",
"rgb": {
"r": 121,
"g": 142,
"b": 81
},
"hsl": {
"h": 80.656,
"s": 27.354,
"l": 43.725
},
"oklch": {
"l": 0.61514,
"c": 0.08862,
"h": 124.5
},
"luminance": 0.24005
}Semantic roles & 50–950 ramp
primary
#798E51
secondary
#988BB0
accent
#64C485
background
#FAFAF8
surface
#F3F4EF
border
#CDCECA
text
#0F100A
muted
#7F7F7C