#798F38#798F38

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

Color values

HEX#798F38
RGBrgb(121, 143, 56)
HSLhsl(75, 44%, 39%)
HSVhsv(75, 61%, 56%)
CMYKcmyk(15.4%, 0%, 60.8%, 43.9%)
CIE-LABlab(56.08, -21.35, 42.66)
CIE-LCHlch(56.08, 47.70, 116.59°)
OKLaboklab(61.41% -0.0613 0.0987)
OKLCHoklch(61.41% 0.116 121.8)
XYZxyz(18.4216, 23.9954, 7.4017)
Luminance0.2399 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F38 #4E388F
analogous
#8F7A38 #798F38 #4E8F38
triadic
#798F38 #38798F #8F3879
tetradic
#798F38 #388F7A #4E388F #8F384E
square
#798F38 #388F7A #4E388F #8F384E
split-complementary
#798F38 #384E8F #7A388F
monochromatic
#2F3716 #546327 #798F38 #9DB94B #B5CA77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798F38#FFFFFF#000000##000000
##798F381.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)
#97872E
Deuteranopia (green-blind)
#94863E
Tritanopia (blue-blind)
#7F887C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f38;
/* rgb */ color: rgb(121, 143, 56);
/* oklch */ color: oklch(61.4% 0.116 121.8);
Tailwind
colors: {
  custom: {
    50: '#a2af72',
    500: '#798f38',
    950: '#000000',
  },
}
SCSS
$custom: #798f38;
$custom-light: #a2af72;
$custom-dark: #000000;
JSON
{
  "hex": "#798f38",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 56
  },
  "hsl": {
    "h": 75.172,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.61406,
    "c": 0.11616,
    "h": 121.8
  },
  "luminance": 0.23995
}

Semantic roles & 50–950 ramp

primary
#798F38
secondary
#8170B3
accent
#54D374
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798F38

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

Preview Lab → · Contrast checker → · Palette generator →

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