#798E3A#798E3A

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

Color values

HEX#798E3A
RGBrgb(121, 142, 58)
HSLhsl(75, 42%, 39%)
HSVhsv(75, 59%, 56%)
CMYKcmyk(14.8%, 0%, 59.2%, 44.3%)
CIE-LABlab(55.80, -20.66, 41.40)
CIE-LCHlch(55.80, 46.27, 116.52°)
OKLaboklab(61.19% -0.0592 0.0962)
OKLCHoklch(61.19% 0.113 121.6)
XYZxyz(18.3220, 23.7164, 7.6147)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E3A #4F3A8E
analogous
#8E793A #798E3A #4F8E3A
triadic
#798E3A #3A798E #8E3A79
tetradic
#798E3A #3A8E79 #4F3A8E #8E3A4F
square
#798E3A #3A8E79 #4F3A8E #8E3A4F
split-complementary
#798E3A #3A4F8E #793A8E
monochromatic
#2F3717 #546328 #798E3A #9DB74E #B5C97A

Accessibility & contrast

On white

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

On black

5.74
#798E3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E3A
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E3A#FFFFFF#000000##000000
##798E3A1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968631
Deuteranopia (green-blind)
#93863F
Tritanopia (blue-blind)
#7F877C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798e3a;
/* rgb */ color: rgb(121, 142, 58);
/* oklch */ color: oklch(61.2% 0.113 121.6);
Tailwind
colors: {
  custom: {
    50: '#a2af73',
    500: '#798e3a',
    950: '#000000',
  },
}
SCSS
$custom: #798e3a;
$custom-light: #a2af73;
$custom-dark: #000000;
JSON
{
  "hex": "#798e3a",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 58
  },
  "hsl": {
    "h": 75,
    "s": 42,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61187,
    "c": 0.11297,
    "h": 121.6
  },
  "luminance": 0.23716
}

Semantic roles & 50–950 ramp

primary
#798E3A
secondary
#8272B2
accent
#56D275
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798E3A

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

Preview Lab → · Contrast checker → · Palette generator →

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