#798F3C#798F3C

#798F3C is a mid, moderate yellow-green. Relative luminance 0.240; OKLCH L 61.5% C 0.112 H 122.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#798F3C
RGBrgb(121, 143, 60)
HSLhsl(76, 41%, 40%)
HSVhsv(76, 58%, 56%)
CMYKcmyk(15.4%, 0%, 58%, 43.9%)
CIE-LABlab(56.12, -20.99, 40.80)
CIE-LCHlch(56.12, 45.89, 117.22°)
OKLaboklab(61.45% -0.0599 0.0952)
OKLCHoklch(61.45% 0.112 122.2)
XYZxyz(18.5234, 24.0361, 7.9377)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F3C #523C8F
analogous
#8F7C3C #798F3C #4F8F3C
triadic
#798F3C #3C798F #8F3C79
tetradic
#798F3C #3C8F7C #523C8F #8F3C4F
square
#798F3C #3C8F7C #523C8F #8F3C4F
split-complementary
#798F3C #3C4F8F #7C3C8F
monochromatic
#303918 #55642A #798F3C #9CB652 #B4C87D

Accessibility & contrast

On white

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

On black

5.81
#798F3C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F3C
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F3C#FFFFFF#000000##000000
##798F3C1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978733
Deuteranopia (green-blind)
#948741
Tritanopia (blue-blind)
#7F887D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #798f3c;
/* rgb */ color: rgb(121, 143, 60);
/* oklch */ color: oklch(61.5% 0.112 122.2);
Tailwind
colors: {
  custom: {
    50: '#a2af75',
    500: '#798f3c',
    950: '#000000',
  },
}
SCSS
$custom: #798f3c;
$custom-light: #a2af75;
$custom-dark: #000000;
JSON
{
  "hex": "#798f3c",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 60
  },
  "hsl": {
    "h": 75.904,
    "s": 40.887,
    "l": 39.804
  },
  "oklch": {
    "l": 0.61452,
    "c": 0.11245,
    "h": 122.2
  },
  "luminance": 0.24036
}

Semantic roles & 50–950 ramp

primary
#798F3C
secondary
#8575B2
accent
#57D177
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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