#798B2E#798B2E

#798B2E is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.119 H 119.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#798B2E
RGBrgb(121, 139, 46)
HSLhsl(72, 50%, 36%)
HSVhsv(72, 67%, 55%)
CMYKcmyk(12.9%, 0%, 66.9%, 45.5%)
CIE-LABlab(54.79, -20.08, 45.76)
CIE-LCHlch(54.79, 49.98, 113.69°)
OKLaboklab(60.34% -0.0588 0.1039)
OKLCHoklch(60.34% 0.119 119.5)
XYZxyz(17.6112, 22.7275, 6.0433)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B2E #402E8B
analogous
#8B6F2E #798B2E #4B8B2E
triadic
#798B2E #2E798B #8B2E79
tetradic
#798B2E #2E8B6F #402E8B #8B2E4B
square
#798B2E #2E8B6F #402E8B #8B2E4B
split-complementary
#798B2E #2E4B8B #6F2E8B
monochromatic
#292F10 #515D1F #798B2E #A1B93D #B9CD67

Accessibility & contrast

On white

3.79
#798B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#798B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B2E
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B2E#FFFFFF#000000##000000
##798B2E1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948321
Deuteranopia (green-blind)
#928335
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b2e;
/* rgb */ color: rgb(121, 139, 46);
/* oklch */ color: oklch(60.3% 0.119 119.5);
Tailwind
colors: {
  custom: {
    50: '#a2ac6c',
    500: '#798b2e',
    950: '#000000',
  },
}
SCSS
$custom: #798b2e;
$custom-light: #a2ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798b2e",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 71.613,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60337,
    "c": 0.11934,
    "h": 119.5
  },
  "luminance": 0.22727
}

Semantic roles & 50–950 ramp

primary
#798B2E
secondary
#7161B3
accent
#4EDA69
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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