#798C2E#798C2E

#798C2E is a mid, vivid yellow-green. Relative luminance 0.230; OKLCH L 60.6% C 0.121 H 119.9°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#798C2E
RGBrgb(121, 140, 46)
HSLhsl(72, 51%, 36%)
HSVhsv(72, 67%, 55%)
CMYKcmyk(13.6%, 0%, 67.1%, 45.1%)
CIE-LABlab(55.09, -20.60, 46.08)
CIE-LCHlch(55.09, 50.47, 114.08°)
OKLaboklab(60.58% -0.0602 0.1045)
OKLCHoklch(60.58% 0.121 119.9)
XYZxyz(17.7567, 23.0184, 6.0918)
Luminance0.2302 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C2E #412E8C
analogous
#8C702E #798C2E #4A8C2E
triadic
#798C2E #2E798C #8C2E79
tetradic
#798C2E #2E8C70 #412E8C #8C2E4A
square
#798C2E #2E8C70 #412E8C #8C2E4A
split-complementary
#798C2E #2E4A8C #702E8C
monochromatic
#293010 #515E1F #798C2E #A1BA3D #B9CD67

Accessibility & contrast

On white

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

On black

5.60
#798C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C2E
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C2E#FFFFFF#000000##000000
##798C2E1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798c2e;
/* rgb */ color: rgb(121, 140, 46);
/* oklch */ color: oklch(60.6% 0.121 119.9);
Tailwind
colors: {
  custom: {
    50: '#a2ad6c',
    500: '#798c2e',
    950: '#000000',
  },
}
SCSS
$custom: #798c2e;
$custom-light: #a2ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798c2e",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 46
  },
  "hsl": {
    "h": 72.128,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60579,
    "c": 0.12064,
    "h": 119.9
  },
  "luminance": 0.23018
}

Semantic roles & 50–950 ramp

primary
#798C2E
secondary
#7262B4
accent
#4EDA6A
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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