#798F22#798F22

#798F22 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.133 H 120.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#798F22
RGBrgb(121, 143, 34)
HSLhsl(72, 62%, 35%)
HSVhsv(72, 76%, 56%)
CMYKcmyk(15.4%, 0%, 76.2%, 43.9%)
CIE-LABlab(55.91, -22.85, 51.59)
CIE-LCHlch(55.91, 56.43, 113.89°)
OKLaboklab(61.21% -0.0676 0.1141)
OKLCHoklch(61.21% 0.133 120.6)
XYZxyz(17.9967, 23.8254, 5.1637)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F22 #38228F
analogous
#8F6F22 #798F22 #438F22
triadic
#798F22 #22798F #8F2279
tetradic
#798F22 #228F6F #38228F #8F2243
square
#798F22 #228F6F #38228F #8F2243
split-complementary
#798F22 #22438F #6F228F
monochromatic
#252C0A #4F5E16 #798F22 #A3C02E #BCD755

Accessibility & contrast

On white

3.64
#798F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#798F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F22
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F22#FFFFFF#000000##000000
##798F221.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988609
Deuteranopia (green-blind)
#96862C
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f22;
/* rgb */ color: rgb(121, 143, 34);
/* oklch */ color: oklch(61.2% 0.133 120.6);
Tailwind
colors: {
  custom: {
    50: '#a3af66',
    500: '#798f22',
    950: '#000000',
  },
}
SCSS
$custom: #798f22;
$custom-light: #a3af66;
$custom-dark: #000000;
JSON
{
  "hex": "#798f22",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 72.11,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61214,
    "c": 0.13266,
    "h": 120.6
  },
  "luminance": 0.23825
}

Semantic roles & 50–950 ramp

primary
#798F22
secondary
#6752BA
accent
#43E564
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F22

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

Preview Lab → · Contrast checker → · Palette generator →

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