#798B22#798B22

#798B22 is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 60.2% C 0.128 H 119.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B22
RGBrgb(121, 139, 34)
HSLhsl(70, 61%, 34%)
HSVhsv(70, 76%, 55%)
CMYKcmyk(12.9%, 0%, 75.5%, 45.5%)
CIE-LABlab(54.71, -20.82, 50.44)
CIE-LCHlch(54.71, 54.57, 112.43°)
OKLaboklab(60.24% -0.062 0.1117)
OKLCHoklch(60.24% 0.128 119)
XYZxyz(17.4069, 22.6458, 4.9671)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B22 #34228B
analogous
#8B6922 #798B22 #458B22
triadic
#798B22 #22798B #8B2279
tetradic
#798B22 #228B69 #34228B #8B2245
square
#798B22 #228B69 #34228B #8B2245
split-complementary
#798B22 #22458B #69228B
monochromatic
#23290A #4E5A16 #798B22 #A4BC2E #BED553

Accessibility & contrast

On white

3.80
#798B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#798B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B22
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B22#FFFFFF#000000##000000
##798B221.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830C
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b22;
/* rgb */ color: rgb(121, 139, 34);
/* oklch */ color: oklch(60.2% 0.128 119.0);
Tailwind
colors: {
  custom: {
    50: '#a3ac65',
    500: '#798b22',
    950: '#000000',
  },
}
SCSS
$custom: #798b22;
$custom-light: #a3ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#798b22",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 70.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60242,
    "c": 0.12776,
    "h": 119
  },
  "luminance": 0.22646
}

Semantic roles & 50–950 ramp

primary
#798B22
secondary
#6250B8
accent
#44E45F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B22

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

Preview Lab → · Contrast checker → · Palette generator →

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