#798E3B#798E3B

#798E3B is a mid, moderate yellow-green. Relative luminance 0.237; OKLCH L 61.2% C 0.112 H 121.7°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#798E3B
RGBrgb(121, 142, 59)
HSLhsl(75, 41%, 39%)
HSVhsv(75, 58%, 56%)
CMYKcmyk(14.8%, 0%, 58.5%, 44.3%)
CIE-LABlab(55.81, -20.57, 40.93)
CIE-LCHlch(55.81, 45.81, 116.68°)
OKLaboklab(61.2% -0.0588 0.0953)
OKLCHoklch(61.2% 0.112 121.7)
XYZxyz(18.3477, 23.7267, 7.7499)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E3B #503B8E
analogous
#8E7A3B #798E3B #4F8E3B
triadic
#798E3B #3B798E #8E3B79
tetradic
#798E3B #3B8E7A #503B8E #8E3B4F
square
#798E3B #3B8E7A #503B8E #8E3B4F
split-complementary
#798E3B #3B4F8E #7A3B8E
monochromatic
#2F3817 #546329 #798E3B #9CB650 #B5C87B

Accessibility & contrast

On white

3.66
#798E3B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#798E3B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E3B
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E3B#FFFFFF#000000##000000
##798E3B1.003.665.755.75
#FFFFFF3.661.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968632
Deuteranopia (green-blind)
#938640
Tritanopia (blue-blind)
#7F877C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798e3b;
/* rgb */ color: rgb(121, 142, 59);
/* oklch */ color: oklch(61.2% 0.112 121.7);
Tailwind
colors: {
  custom: {
    50: '#a2af74',
    500: '#798e3b',
    950: '#000000',
  },
}
SCSS
$custom: #798e3b;
$custom-light: #a2af74;
$custom-dark: #000000;
JSON
{
  "hex": "#798e3b",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 59
  },
  "hsl": {
    "h": 75.181,
    "s": 41.294,
    "l": 39.412
  },
  "oklch": {
    "l": 0.61199,
    "c": 0.11202,
    "h": 121.7
  },
  "luminance": 0.23727
}

Semantic roles & 50–950 ramp

primary
#798E3B
secondary
#8373B2
accent
#57D176
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798E3B

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

Preview Lab → · Contrast checker → · Palette generator →

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