#798A24#798A24

#798A24 is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 60.0% C 0.125 H 118.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#798A24
RGBrgb(121, 138, 36)
HSLhsl(70, 59%, 34%)
HSVhsv(70, 74%, 54%)
CMYKcmyk(12.3%, 0%, 73.9%, 45.9%)
CIE-LABlab(54.42, -20.20, 49.43)
CIE-LCHlch(54.42, 53.40, 112.23°)
OKLaboklab(60.01% -0.0601 0.1099)
OKLCHoklch(60.01% 0.125 118.7)
XYZxyz(17.2924, 22.3694, 5.0755)
Luminance0.2237 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A24 #35248A
analogous
#8A6824 #798A24 #468A24
triadic
#798A24 #24798A #8A2479
tetradic
#798A24 #248A68 #35248A #8A2446
square
#798A24 #248A68 #35248A #8A2446
split-complementary
#798A24 #24468A #68248A
monochromatic
#24290B #4E5917 #798A24 #A4BB31 #BED356

Accessibility & contrast

On white

3.84
#798A24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#798A24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A24
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A24#FFFFFF#000000##000000
##798A241.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938211
Deuteranopia (green-blind)
#91832D
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a24;
/* rgb */ color: rgb(121, 138, 36);
/* oklch */ color: oklch(60.0% 0.125 118.7);
Tailwind
colors: {
  custom: {
    50: '#a3ac66',
    500: '#798a24',
    950: '#000000',
  },
}
SCSS
$custom: #798a24;
$custom-light: #a3ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#798a24",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 70,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60013,
    "c": 0.12529,
    "h": 118.7
  },
  "luminance": 0.22369
}

Semantic roles & 50–950 ramp

primary
#798A24
secondary
#6353B7
accent
#46E260
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A24

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

Preview Lab → · Contrast checker → · Palette generator →

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