#798B38#798B38

#798B38 is a mid, moderate yellow-green. Relative luminance 0.228; OKLCH L 60.4% C 0.111 H 120.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#798B38
RGBrgb(121, 139, 56)
HSLhsl(73, 43%, 38%)
HSVhsv(73, 60%, 55%)
CMYKcmyk(12.9%, 0%, 59.7%, 45.5%)
CIE-LABlab(54.88, -19.29, 41.32)
CIE-LCHlch(54.88, 45.60, 115.03°)
OKLaboklab(60.44% -0.0555 0.0958)
OKLCHoklch(60.44% 0.111 120.1)
XYZxyz(17.8318, 22.8158, 7.2051)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B38 #4A388B
analogous
#8B7338 #798B38 #4F8B38
triadic
#798B38 #38798B #8B3879
tetradic
#798B38 #388B73 #4A388B #8B384F
square
#798B38 #388B73 #4A388B #8B384F
split-complementary
#798B38 #384F8B #73388B
monochromatic
#2D3415 #535F26 #798B38 #9FB64A #B6C876

Accessibility & contrast

On white

3.77
#798B38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#798B38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B38
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B38#FFFFFF#000000##000000
##798B381.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93832F
Deuteranopia (green-blind)
#91843D
Tritanopia (blue-blind)
#7F8479
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b38;
/* rgb */ color: rgb(121, 139, 56);
/* oklch */ color: oklch(60.4% 0.111 120.1);
Tailwind
colors: {
  custom: {
    50: '#a2ac72',
    500: '#798b38',
    950: '#000000',
  },
}
SCSS
$custom: #798b38;
$custom-light: #a2ac72;
$custom-dark: #000000;
JSON
{
  "hex": "#798b38",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 56
  },
  "hsl": {
    "h": 73.012,
    "s": 42.564,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.11074,
    "h": 120.1
  },
  "luminance": 0.22816
}

Semantic roles & 50–950 ramp

primary
#798B38
secondary
#7D6EB1
accent
#55D271
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798B38

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

Preview Lab → · Contrast checker → · Palette generator →

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