#798C24#798C24

#798C24 is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 60.5% C 0.128 H 119.5°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#798C24
RGBrgb(121, 140, 36)
HSLhsl(71, 59%, 35%)
HSVhsv(71, 74%, 55%)
CMYKcmyk(13.6%, 0%, 74.3%, 45.1%)
CIE-LABlab(55.02, -21.23, 50.02)
CIE-LCHlch(55.02, 54.33, 113.00°)
OKLaboklab(60.5% -0.0629 0.1112)
OKLCHoklch(60.5% 0.128 119.5)
XYZxyz(17.5820, 22.9486, 5.1720)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C24 #37248C
analogous
#8C6B24 #798C24 #458C24
triadic
#798C24 #24798C #8C2479
tetradic
#798C24 #248C6B #37248C #8C2445
square
#798C24 #248C6B #37248C #8C2445
split-complementary
#798C24 #24458C #6B248C
monochromatic
#252B0B #4F5B17 #798C24 #A3BD31 #BDD457

Accessibility & contrast

On white

3.76
#798C24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#798C24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C24
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C24#FFFFFF#000000##000000
##798C241.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958410
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c24;
/* rgb */ color: rgb(121, 140, 36);
/* oklch */ color: oklch(60.5% 0.128 119.5);
Tailwind
colors: {
  custom: {
    50: '#a3ad67',
    500: '#798c24',
    950: '#000000',
  },
}
SCSS
$custom: #798c24;
$custom-light: #a3ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#798c24",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 36
  },
  "hsl": {
    "h": 70.962,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60498,
    "c": 0.12774,
    "h": 119.5
  },
  "luminance": 0.22948
}

Semantic roles & 50–950 ramp

primary
#798C24
secondary
#6654B8
accent
#46E262
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C24

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

Preview Lab → · Contrast checker → · Palette generator →

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