#798B2F#798B2F

#798B2F is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.119 H 119.6°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#798B2F
RGBrgb(121, 139, 47)
HSLhsl(72, 49%, 36%)
HSVhsv(72, 66%, 55%)
CMYKcmyk(12.9%, 0%, 66.2%, 45.5%)
CIE-LABlab(54.80, -20.01, 45.34)
CIE-LCHlch(54.80, 49.56, 113.82°)
OKLaboklab(60.35% -0.0585 0.1031)
OKLCHoklch(60.35% 0.119 119.6)
XYZxyz(17.6311, 22.7355, 6.1483)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B2F #412F8B
analogous
#8B6F2F #798B2F #4B8B2F
triadic
#798B2F #2F798B #8B2F79
tetradic
#798B2F #2F8B6F #412F8B #8B2F4B
square
#798B2F #2F8B6F #412F8B #8B2F4B
split-complementary
#798B2F #2F4B8B #6F2F8B
monochromatic
#293010 #515D20 #798B2F #A1B93E #B9CC68

Accessibility & contrast

On white

3.79
#798B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#798B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B2F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B2F#FFFFFF#000000##000000
##798B2F1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948323
Deuteranopia (green-blind)
#928336
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b2f;
/* rgb */ color: rgb(121, 139, 47);
/* oklch */ color: oklch(60.3% 0.119 119.6);
Tailwind
colors: {
  custom: {
    50: '#a2ac6c',
    500: '#798b2f',
    950: '#000000',
  },
}
SCSS
$custom: #798b2f;
$custom-light: #a2ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798b2f",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 71.739,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60346,
    "c": 0.11855,
    "h": 119.6
  },
  "luminance": 0.22735
}

Semantic roles & 50–950 ramp

primary
#798B2F
secondary
#7263B3
accent
#4FD96A
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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