#798C2D#798C2D

#798C2D 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#798C2D
RGBrgb(121, 140, 45)
HSLhsl(72, 51%, 36%)
HSVhsv(72, 68%, 55%)
CMYKcmyk(13.6%, 0%, 67.9%, 45.1%)
CIE-LABlab(55.08, -20.67, 46.50)
CIE-LCHlch(55.08, 50.88, 113.96°)
OKLaboklab(60.57% -0.0605 0.1053)
OKLCHoklch(60.57% 0.121 119.9)
XYZxyz(17.7372, 23.0107, 5.9892)
Luminance0.2301 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C2D #402D8C
analogous
#8C702D #798C2D #4A8C2D
triadic
#798C2D #2D798C #8C2D79
tetradic
#798C2D #2D8C70 #402D8C #8C2D4A
square
#798C2D #2D8C70 #402D8C #8C2D4A
split-complementary
#798C2D #2D4A8C #702D8C
monochromatic
#292F0F #515E1E #798C2D #A1BA3C #B9CE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C2D#FFFFFF#000000##000000
##798C2D1.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)
#958420
Deuteranopia (green-blind)
#938434
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c2d;
/* rgb */ color: rgb(121, 140, 45);
/* oklch */ color: oklch(60.6% 0.121 119.9);
Tailwind
colors: {
  custom: {
    50: '#a2ad6b',
    500: '#798c2d',
    950: '#000000',
  },
}
SCSS
$custom: #798c2d;
$custom-light: #a2ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798c2d",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 72,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.6057,
    "c": 0.1214,
    "h": 119.9
  },
  "luminance": 0.23011
}

Semantic roles & 50–950 ramp

primary
#798C2D
secondary
#7160B4
accent
#4DDB69
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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