#798D2F#798D2F

#798D2F is a mid, vivid yellow-green. Relative luminance 0.233; OKLCH L 60.8% C 0.121 H 120.4°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#798D2F
RGBrgb(121, 141, 47)
HSLhsl(73, 50%, 37%)
HSVhsv(73, 67%, 55%)
CMYKcmyk(14.2%, 0%, 66.7%, 44.7%)
CIE-LABlab(55.40, -21.04, 45.97)
CIE-LCHlch(55.40, 50.56, 114.59°)
OKLaboklab(60.83% -0.0613 0.1045)
OKLCHoklch(60.83% 0.121 120.4)
XYZxyz(17.9234, 23.3200, 6.2458)
Luminance0.2332 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D2F #432F8D
analogous
#8D722F #798D2F #4A8D2F
triadic
#798D2F #2F798D #8D2F79
tetradic
#798D2F #2F8D72 #432F8D #8D2F4A
square
#798D2F #2F8D72 #432F8D #8D2F4A
split-complementary
#798D2F #2F4A8D #722F8D
monochromatic
#2A3110 #525F20 #798D2F #A0BB3E #B8CD69

Accessibility & contrast

On white

3.71
#798D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#798D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D2F
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D2F#FFFFFF#000000##000000
##798D2F1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968522
Deuteranopia (green-blind)
#938536
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d2f;
/* rgb */ color: rgb(121, 141, 47);
/* oklch */ color: oklch(60.8% 0.121 120.4);
Tailwind
colors: {
  custom: {
    50: '#a2ae6d',
    500: '#798d2f',
    950: '#000000',
  },
}
SCSS
$custom: #798d2f;
$custom-light: #a2ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#798d2f",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 72.766,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6083,
    "c": 0.12113,
    "h": 120.4
  },
  "luminance": 0.2332
}

Semantic roles & 50–950 ramp

primary
#798D2F
secondary
#7564B4
accent
#4EDA6C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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