#798F17#798F17

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

Color values

HEX#798F17
RGBrgb(121, 143, 23)
HSLhsl(71, 72%, 33%)
HSVhsv(71, 84%, 56%)
CMYKcmyk(15.4%, 0%, 83.9%, 43.9%)
CIE-LABlab(55.86, -23.34, 54.96)
CIE-LCHlch(55.86, 59.71, 113.00°)
OKLaboklab(61.15% -0.0698 0.1194)
OKLCHoklch(61.15% 0.138 120.3)
XYZxyz(17.8626, 23.7718, 4.4578)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F17 #2D178F
analogous
#8F6917 #798F17 #3D8F17
triadic
#798F17 #17798F #8F1779
tetradic
#798F17 #178F69 #2D178F #8F173D
square
#798F17 #178F69 #2D178F #8F173D
split-complementary
#798F17 #173D8F #69178F
monochromatic
#202606 #4C5A0F #798F17 #A6C41F #C3E040

Accessibility & contrast

On white

3.65
#798F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#798F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F17
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F17#FFFFFF#000000##000000
##798F171.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f17;
/* rgb */ color: rgb(121, 143, 23);
/* oklch */ color: oklch(61.2% 0.138 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af61',
    500: '#798f17',
    950: '#000000',
  },
}
SCSS
$custom: #798f17;
$custom-light: #a3af61;
$custom-dark: #000000;
JSON
{
  "hex": "#798f17",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 71,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61153,
    "c": 0.13825,
    "h": 120.3
  },
  "luminance": 0.23772
}

Semantic roles & 50–950 ramp

primary
#798F17
secondary
#5841C1
accent
#39EF5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798F17

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

Preview Lab → · Contrast checker → · Palette generator →

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