#798D40#798D40

#798D40 is a mid, moderate yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.106 H 121.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#798D40
RGBrgb(121, 141, 64)
HSLhsl(76, 38%, 40%)
HSVhsv(76, 55%, 55%)
CMYKcmyk(14.2%, 0%, 54.6%, 44.7%)
CIE-LABlab(55.57, -19.58, 38.20)
CIE-LCHlch(55.57, 42.92, 117.14°)
OKLaboklab(61.02% -0.0555 0.09)
OKLCHoklch(61.02% 0.106 121.7)
XYZxyz(18.3356, 23.4849, 8.4166)
Luminance0.2349 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D40 #54408D
analogous
#8D7A40 #798D40 #538D40
triadic
#798D40 #40798D #8D4079
tetradic
#798D40 #408D7A #54408D #8D4053
square
#798D40 #408D7A #54408D #8D4053
split-complementary
#798D40 #40538D #7A408D
monochromatic
#31391A #55632D #798D40 #9BB357 #B4C681

Accessibility & contrast

On white

3.69
#798D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#798D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D40
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D40#FFFFFF#000000##000000
##798D401.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958539
Deuteranopia (green-blind)
#928545
Tritanopia (blue-blind)
#7F877C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d40;
/* rgb */ color: rgb(121, 141, 64);
/* oklch */ color: oklch(61.0% 0.106 121.7);
Tailwind
colors: {
  custom: {
    50: '#a1ae77',
    500: '#798d40',
    950: '#000000',
  },
}
SCSS
$custom: #798d40;
$custom-light: #a1ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#798d40",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 75.584,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6102,
    "c": 0.10575,
    "h": 121.7
  },
  "luminance": 0.23485
}

Semantic roles & 50–950 ramp

primary
#798D40
secondary
#8778B0
accent
#5ACE78
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #798D40

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#798D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva