#798D22#798D22

#798D22 is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.130 H 119.9°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#798D22
RGBrgb(121, 141, 34)
HSLhsl(71, 61%, 34%)
HSVhsv(71, 76%, 55%)
CMYKcmyk(14.2%, 0%, 75.9%, 44.7%)
CIE-LABlab(55.31, -21.84, 51.02)
CIE-LCHlch(55.31, 55.50, 113.18°)
OKLaboklab(60.73% -0.0648 0.1129)
OKLCHoklch(60.73% 0.13 119.9)
XYZxyz(17.6991, 23.2303, 5.0645)
Luminance0.2323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D22 #36228D
analogous
#8D6C22 #798D22 #448D22
triadic
#798D22 #22798D #8D2279
tetradic
#798D22 #228D6C #36228D #8D2244
square
#798D22 #228D6C #36228D #8D2244
split-complementary
#798D22 #22448D #6C228D
monochromatic
#242A0A #4F5C16 #798D22 #A3BE2E #BDD654

Accessibility & contrast

On white

3.72
#798D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#798D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D22
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D22#FFFFFF#000000##000000
##798D221.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#96850B
Deuteranopia (green-blind)
#94852C
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d22;
/* rgb */ color: rgb(121, 141, 34);
/* oklch */ color: oklch(60.7% 0.130 119.9);
Tailwind
colors: {
  custom: {
    50: '#a3ae66',
    500: '#798d22',
    950: '#000000',
  },
}
SCSS
$custom: #798d22;
$custom-light: #a3ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#798d22",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 71.215,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60727,
    "c": 0.13021,
    "h": 119.9
  },
  "luminance": 0.2323
}

Semantic roles & 50–950 ramp

primary
#798D22
secondary
#6551B9
accent
#44E462
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D22

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

Preview Lab → · Contrast checker → · Palette generator →

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