#798E22#798E22

#798E22 is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.131 H 120.3°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#798E22
RGBrgb(121, 142, 34)
HSLhsl(72, 61%, 35%)
HSVhsv(72, 76%, 56%)
CMYKcmyk(14.8%, 0%, 76.1%, 44.3%)
CIE-LABlab(55.61, -22.35, 51.31)
CIE-LCHlch(55.61, 55.96, 113.54°)
OKLaboklab(60.97% -0.0662 0.1135)
OKLCHoklch(60.97% 0.131 120.3)
XYZxyz(17.8472, 23.5265, 5.1139)
Luminance0.2353 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E22 #37228E
analogous
#8E6D22 #798E22 #438E22
triadic
#798E22 #22798E #8E2279
tetradic
#798E22 #228E6D #37228E #8E2243
square
#798E22 #228E6D #37228E #8E2243
split-complementary
#798E22 #22438E #6D228E
monochromatic
#252B0A #4F5D16 #798E22 #A3BF2E #BDD654

Accessibility & contrast

On white

3.68
#798E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#798E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E22
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E22#FFFFFF#000000##000000
##798E221.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850A
Deuteranopia (green-blind)
#95852C
Tritanopia (blue-blind)
#808679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e22;
/* rgb */ color: rgb(121, 142, 34);
/* oklch */ color: oklch(61.0% 0.131 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af66',
    500: '#798e22',
    950: '#000000',
  },
}
SCSS
$custom: #798e22;
$custom-light: #a3af66;
$custom-dark: #000000;
JSON
{
  "hex": "#798e22",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 71.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60971,
    "c": 0.13143,
    "h": 120.3
  },
  "luminance": 0.23526
}

Semantic roles & 50–950 ramp

primary
#798E22
secondary
#6652BA
accent
#43E463
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E22

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

Preview Lab → · Contrast checker → · Palette generator →

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