#798A2E#798A2E

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

Color values

HEX#798A2E
RGBrgb(121, 138, 46)
HSLhsl(71, 50%, 36%)
HSVhsv(71, 67%, 54%)
CMYKcmyk(12.3%, 0%, 66.7%, 45.9%)
CIE-LABlab(54.49, -19.57, 45.45)
CIE-LCHlch(54.49, 49.48, 113.29°)
OKLaboklab(60.1% -0.0573 0.1032)
OKLCHoklch(60.1% 0.118 119.1)
XYZxyz(17.4671, 22.4393, 5.9953)
Luminance0.2244 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A2E #3F2E8A
analogous
#8A6D2E #798A2E #4B8A2E
triadic
#798A2E #2E798A #8A2E79
tetradic
#798A2E #2E8A6D #3F2E8A #8A2E4B
square
#798A2E #2E8A6D #3F2E8A #8A2E4B
split-complementary
#798A2E #2E4B8A #6D2E8A
monochromatic
#292E0F #515C1F #798A2E #A1B83D #B9CC66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A2E#FFFFFF#000000##000000
##798A2E1.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)
#938222
Deuteranopia (green-blind)
#918335
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a2e;
/* rgb */ color: rgb(121, 138, 46);
/* oklch */ color: oklch(60.1% 0.118 119.1);
Tailwind
colors: {
  custom: {
    50: '#a2ac6c',
    500: '#798a2e',
    950: '#000000',
  },
}
SCSS
$custom: #798a2e;
$custom-light: #a2ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798a2e",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 71.087,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60095,
    "c": 0.11806,
    "h": 119.1
  },
  "luminance": 0.22439
}

Semantic roles & 50–950 ramp

primary
#798A2E
secondary
#7061B3
accent
#4EDA68
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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