#798C22#798C22

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

Color values

HEX#798C22
RGBrgb(121, 140, 34)
HSLhsl(71, 61%, 34%)
HSVhsv(71, 76%, 55%)
CMYKcmyk(13.6%, 0%, 75.7%, 45.1%)
CIE-LABlab(55.01, -21.33, 50.73)
CIE-LCHlch(55.01, 55.03, 112.81°)
OKLaboklab(60.48% -0.0634 0.1123)
OKLCHoklch(60.48% 0.129 119.4)
XYZxyz(17.5523, 22.9367, 5.0156)
Luminance0.2294 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C22 #35228C
analogous
#8C6A22 #798C22 #448C22
triadic
#798C22 #22798C #8C2279
tetradic
#798C22 #228C6A #35228C #8C2244
square
#798C22 #228C6A #35228C #8C2244
split-complementary
#798C22 #22448C #6A228C
monochromatic
#242A0A #4E5B16 #798C22 #A4BD2E #BED553

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C22#FFFFFF#000000##000000
##798C221.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)
#95840B
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c22;
/* rgb */ color: rgb(121, 140, 34);
/* oklch */ color: oklch(60.5% 0.129 119.4);
Tailwind
colors: {
  custom: {
    50: '#a3ad66',
    500: '#798c22',
    950: '#000000',
  },
}
SCSS
$custom: #798c22;
$custom-light: #a3ad66;
$custom-dark: #000000;
JSON
{
  "hex": "#798c22",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 70.755,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60484,
    "c": 0.12898,
    "h": 119.4
  },
  "luminance": 0.22937
}

Semantic roles & 50–950 ramp

primary
#798C22
secondary
#6351B9
accent
#44E460
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C22

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

Preview Lab → · Contrast checker → · Palette generator →

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