#798D17#798D17

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

Color values

HEX#798D17
RGBrgb(121, 141, 23)
HSLhsl(70, 72%, 32%)
HSVhsv(70, 84%, 55%)
CMYKcmyk(14.2%, 0%, 83.7%, 44.7%)
CIE-LABlab(55.25, -22.33, 54.44)
CIE-LCHlch(55.25, 58.84, 112.30°)
OKLaboklab(60.67% -0.067 0.1182)
OKLCHoklch(60.67% 0.136 119.5)
XYZxyz(17.5651, 23.1767, 4.3586)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D17 #2B178D
analogous
#8D6617 #798D17 #3E8D17
triadic
#798D17 #17798D #8D1779
tetradic
#798D17 #178D66 #2B178D #8D173E
square
#798D17 #178D66 #2B178D #8D173E
split-complementary
#798D17 #173E8D #66178D
monochromatic
#1F2406 #4C580E #798D17 #A6C220 #C4E03F

Accessibility & contrast

On white

3.73
#798D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#798D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D17
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D17#FFFFFF#000000##000000
##798D171.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#948524
Tritanopia (blue-blind)
#818578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d17;
/* rgb */ color: rgb(121, 141, 23);
/* oklch */ color: oklch(60.7% 0.136 119.5);
Tailwind
colors: {
  custom: {
    50: '#a3ae61',
    500: '#798d17',
    950: '#000000',
  },
}
SCSS
$custom: #798d17;
$custom-light: #a3ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#798d17",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 70.169,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60666,
    "c": 0.13589,
    "h": 119.5
  },
  "luminance": 0.23177
}

Semantic roles & 50–950 ramp

primary
#798D17
secondary
#5640C0
accent
#39EF58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798D17

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

Preview Lab → · Contrast checker → · Palette generator →

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