#798A2D#798A2D

#798A2D is a mid, moderate yellow-green. Relative luminance 0.224; OKLCH L 60.1% C 0.119 H 119.0°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#798A2D
RGBrgb(121, 138, 45)
HSLhsl(71, 51%, 36%)
HSVhsv(71, 67%, 54%)
CMYKcmyk(12.3%, 0%, 67.4%, 45.9%)
CIE-LABlab(54.48, -19.64, 45.87)
CIE-LCHlch(54.48, 49.90, 113.18°)
OKLaboklab(60.09% -0.0576 0.1039)
OKLCHoklch(60.09% 0.119 119)
XYZxyz(17.4476, 22.4315, 5.8927)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A2D #3E2D8A
analogous
#8A6C2D #798A2D #4A8A2D
triadic
#798A2D #2D798A #8A2D79
tetradic
#798A2D #2D8A6C #3E2D8A #8A2D4A
square
#798A2D #2D8A6C #3E2D8A #8A2D4A
split-complementary
#798A2D #2D4A8A #6C2D8A
monochromatic
#282E0F #515C1E #798A2D #A1B83C #BACD65

Accessibility & contrast

On white

3.83
#798A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#798A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A2D
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A2D#FFFFFF#000000##000000
##798A2D1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938220
Deuteranopia (green-blind)
#918334
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a2d;
/* rgb */ color: rgb(121, 138, 45);
/* oklch */ color: oklch(60.1% 0.119 119.0);
Tailwind
colors: {
  custom: {
    50: '#a2ac6b',
    500: '#798a2d',
    950: '#000000',
  },
}
SCSS
$custom: #798a2d;
$custom-light: #a2ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798a2d",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 70.968,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60086,
    "c": 0.11885,
    "h": 119
  },
  "luminance": 0.22431
}

Semantic roles & 50–950 ramp

primary
#798A2D
secondary
#6F60B3
accent
#4DDA67
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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