#798C2F#798C2F

#798C2F is a mid, moderate yellow-green. Relative luminance 0.230; OKLCH L 60.6% C 0.120 H 120.0°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#798C2F
RGBrgb(121, 140, 47)
HSLhsl(72, 50%, 37%)
HSVhsv(72, 66%, 55%)
CMYKcmyk(13.6%, 0%, 66.4%, 45.1%)
CIE-LABlab(55.10, -20.52, 45.65)
CIE-LCHlch(55.10, 50.06, 114.21°)
OKLaboklab(60.59% -0.0599 0.1038)
OKLCHoklch(60.59% 0.12 120)
XYZxyz(17.7766, 23.0264, 6.1968)
Luminance0.2303 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C2F #422F8C
analogous
#8C712F #798C2F #4B8C2F
triadic
#798C2F #2F798C #8C2F79
tetradic
#798C2F #2F8C71 #422F8C #8C2F4B
square
#798C2F #2F8C71 #422F8C #8C2F4B
split-complementary
#798C2F #2F4B8C #712F8C
monochromatic
#2A3010 #515E20 #798C2F #A1BA3E #B8CD69

Accessibility & contrast

On white

3.75
#798C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#798C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C2F
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C2F#FFFFFF#000000##000000
##798C2F1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958423
Deuteranopia (green-blind)
#928436
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c2f;
/* rgb */ color: rgb(121, 140, 47);
/* oklch */ color: oklch(60.6% 0.120 120.0);
Tailwind
colors: {
  custom: {
    50: '#a2ad6d',
    500: '#798c2f',
    950: '#000000',
  },
}
SCSS
$custom: #798c2f;
$custom-light: #a2ad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#798c2f",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 72.258,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60588,
    "c": 0.11984,
    "h": 120
  },
  "luminance": 0.23026
}

Semantic roles & 50–950 ramp

primary
#798C2F
secondary
#7463B4
accent
#4FD96B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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