#798F3A#798F3A

#798F3A is a mid, moderate yellow-green. Relative luminance 0.240; OKLCH L 61.4% C 0.114 H 122.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#798F3A
RGBrgb(121, 143, 58)
HSLhsl(76, 42%, 39%)
HSVhsv(76, 59%, 56%)
CMYKcmyk(15.4%, 0%, 59.4%, 43.9%)
CIE-LABlab(56.10, -21.17, 41.74)
CIE-LCHlch(56.10, 46.80, 116.90°)
OKLaboklab(61.43% -0.0606 0.097)
OKLCHoklch(61.43% 0.114 122)
XYZxyz(18.4715, 24.0153, 7.6645)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F3A #503A8F
analogous
#8F7B3A #798F3A #4F8F3A
triadic
#798F3A #3A798F #8F3A79
tetradic
#798F3A #3A8F7B #503A8F #8F3A4F
square
#798F3A #3A8F7B #503A8F #8F3A4F
split-complementary
#798F3A #3A4F8F #7B3A8F
monochromatic
#2F3817 #546328 #798F3A #9CB74F #B5C97A

Accessibility & contrast

On white

3.62
#798F3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#798F3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F3A
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F3A#FFFFFF#000000##000000
##798F3A1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978731
Deuteranopia (green-blind)
#948640
Tritanopia (blue-blind)
#7F887D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f3a;
/* rgb */ color: rgb(121, 143, 58);
/* oklch */ color: oklch(61.4% 0.114 122.0);
Tailwind
colors: {
  custom: {
    50: '#a2af73',
    500: '#798f3a',
    950: '#000000',
  },
}
SCSS
$custom: #798f3a;
$custom-light: #a2af73;
$custom-dark: #000000;
JSON
{
  "hex": "#798f3a",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 58
  },
  "hsl": {
    "h": 75.529,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.61429,
    "c": 0.11433,
    "h": 122
  },
  "luminance": 0.24015
}

Semantic roles & 50–950 ramp

primary
#798F3A
secondary
#8372B3
accent
#56D276
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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