#798E40#798E40

#798E40 is a mid, moderate yellow-green. Relative luminance 0.238; OKLCH L 61.3% C 0.107 H 122.1°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#798E40
RGBrgb(121, 142, 64)
HSLhsl(76, 38%, 40%)
HSVhsv(76, 55%, 56%)
CMYKcmyk(14.8%, 0%, 54.9%, 44.3%)
CIE-LABlab(55.87, -20.09, 38.55)
CIE-LCHlch(55.87, 43.47, 117.53°)
OKLaboklab(61.26% -0.057 0.0907)
OKLCHoklch(61.26% 0.107 122.1)
XYZxyz(18.4837, 23.7811, 8.4659)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E40 #55408E
analogous
#8E7C40 #798E40 #528E40
triadic
#798E40 #40798E #8E4079
tetradic
#798E40 #408E7C #55408E #8E4052
square
#798E40 #408E7C #55408E #8E4052
split-complementary
#798E40 #40528E #7C408E
monochromatic
#313A1A #55642D #798E40 #9BB458 #B4C782

Accessibility & contrast

On white

3.65
#798E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E40
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E40#FFFFFF#000000##000000
##798E401.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968638
Deuteranopia (green-blind)
#938645
Tritanopia (blue-blind)
#7E887D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798e40;
/* rgb */ color: rgb(121, 142, 64);
/* oklch */ color: oklch(61.3% 0.107 122.1);
Tailwind
colors: {
  custom: {
    50: '#a1af77',
    500: '#798e40',
    950: '#000000',
  },
}
SCSS
$custom: #798e40;
$custom-light: #a1af77;
$custom-dark: #000000;
JSON
{
  "hex": "#798e40",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 76.154,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6126,
    "c": 0.10715,
    "h": 122.1
  },
  "luminance": 0.23781
}

Semantic roles & 50–950 ramp

primary
#798E40
secondary
#8879B1
accent
#5ACE79
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #798E40

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

Preview Lab → · Contrast checker → · Palette generator →

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