#798D38#798D38

#798D38 is a mid, moderate yellow-green. Relative luminance 0.234; OKLCH L 60.9% C 0.113 H 121.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#798D38
RGBrgb(121, 141, 56)
HSLhsl(74, 43%, 39%)
HSVhsv(74, 60%, 55%)
CMYKcmyk(14.2%, 0%, 60.3%, 44.7%)
CIE-LABlab(55.48, -20.32, 41.99)
CIE-LCHlch(55.48, 46.65, 115.83°)
OKLaboklab(60.92% -0.0584 0.0972)
OKLCHoklch(60.92% 0.113 121)
XYZxyz(18.1240, 23.4002, 7.3025)
Luminance0.2340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D38 #4C388D
analogous
#8D7638 #798D38 #4E8D38
triadic
#798D38 #38798D #8D3879
tetradic
#798D38 #388D76 #4C388D #8D384E
square
#798D38 #388D76 #4C388D #8D384E
split-complementary
#798D38 #384E8D #76388D
monochromatic
#2E3515 #536127 #798D38 #9EB74B #B5C977

Accessibility & contrast

On white

3.70
#798D38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#798D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D38
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D38#FFFFFF#000000##000000
##798D381.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#95852F
Deuteranopia (green-blind)
#93853E
Tritanopia (blue-blind)
#7F867B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d38;
/* rgb */ color: rgb(121, 141, 56);
/* oklch */ color: oklch(60.9% 0.113 121.0);
Tailwind
colors: {
  custom: {
    50: '#a2ae72',
    500: '#798d38',
    950: '#000000',
  },
}
SCSS
$custom: #798d38;
$custom-light: #a2ae72;
$custom-dark: #000000;
JSON
{
  "hex": "#798d38",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 74.118,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.60923,
    "c": 0.11344,
    "h": 121
  },
  "luminance": 0.234
}

Semantic roles & 50–950 ramp

primary
#798D38
secondary
#7F6FB2
accent
#55D373
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798D38

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

Preview Lab → · Contrast checker → · Palette generator →

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