#798B24#798B24

#798B24 is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.127 H 119.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B24
RGBrgb(121, 139, 36)
HSLhsl(70, 59%, 34%)
HSVhsv(70, 74%, 55%)
CMYKcmyk(12.9%, 0%, 74.1%, 45.5%)
CIE-LABlab(54.72, -20.71, 49.72)
CIE-LCHlch(54.72, 53.87, 112.62°)
OKLaboklab(60.26% -0.0615 0.1106)
OKLCHoklch(60.26% 0.127 119.1)
XYZxyz(17.4366, 22.6577, 5.1235)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B24 #36248B
analogous
#8B6A24 #798B24 #468B24
triadic
#798B24 #24798B #8B2479
tetradic
#798B24 #248B6A #36248B #8B2446
square
#798B24 #248B6A #36248B #8B2446
split-complementary
#798B24 #24468B #6A248B
monochromatic
#242A0B #4F5A17 #798B24 #A3BC31 #BDD356

Accessibility & contrast

On white

3.80
#798B24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#798B24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B24
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B24#FFFFFF#000000##000000
##798B241.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948311
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b24;
/* rgb */ color: rgb(121, 139, 36);
/* oklch */ color: oklch(60.3% 0.127 119.1);
Tailwind
colors: {
  custom: {
    50: '#a3ac66',
    500: '#798b24',
    950: '#000000',
  },
}
SCSS
$custom: #798b24;
$custom-light: #a3ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#798b24",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 36
  },
  "hsl": {
    "h": 70.485,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60255,
    "c": 0.12651,
    "h": 119.1
  },
  "luminance": 0.22658
}

Semantic roles & 50–950 ramp

primary
#798B24
secondary
#6553B7
accent
#46E261
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B24

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

Preview Lab → · Contrast checker → · Palette generator →

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