#798E2F#798E2F

#798E2F is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.1% C 0.122 H 120.8°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#798E2F
RGBrgb(121, 142, 47)
HSLhsl(73, 50%, 37%)
HSVhsv(73, 67%, 56%)
CMYKcmyk(14.8%, 0%, 66.9%, 44.3%)
CIE-LABlab(55.70, -21.55, 46.29)
CIE-LCHlch(55.70, 51.06, 114.96°)
OKLaboklab(61.07% -0.0628 0.1051)
OKLCHoklch(61.07% 0.122 120.8)
XYZxyz(18.0715, 23.6162, 6.2951)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E2F #442F8E
analogous
#8E742F #798E2F #4A8E2F
triadic
#798E2F #2F798E #8E2F79
tetradic
#798E2F #2F8E74 #442F8E #8E2F4A
square
#798E2F #2F8E74 #442F8E #8E2F4A
split-complementary
#798E2F #2F4A8E #742F8E
monochromatic
#2B3211 #526020 #798E2F #A0BC3E #B8CE6A

Accessibility & contrast

On white

3.67
#798E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#798E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E2F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E2F#FFFFFF#000000##000000
##798E2F1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978622
Deuteranopia (green-blind)
#948636
Tritanopia (blue-blind)
#80877B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e2f;
/* rgb */ color: rgb(121, 142, 47);
/* oklch */ color: oklch(61.1% 0.122 120.8);
Tailwind
colors: {
  custom: {
    50: '#a2af6d',
    500: '#798e2f',
    950: '#000000',
  },
}
SCSS
$custom: #798e2f;
$custom-light: #a2af6d;
$custom-dark: #000000;
JSON
{
  "hex": "#798e2f",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 73.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.12243,
    "h": 120.8
  },
  "luminance": 0.23616
}

Semantic roles & 50–950 ramp

primary
#798E2F
secondary
#7664B5
accent
#4EDA6D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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