#798D16#798D16

#798D16 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.63:1 contrast (WCAG AA passes).

Color values

HEX#798D16
RGBrgb(121, 141, 22)
HSLhsl(70, 73%, 32%)
HSVhsv(70, 84%, 55%)
CMYKcmyk(14.2%, 0%, 84.4%, 44.7%)
CIE-LABlab(55.25, -22.36, 54.70)
CIE-LCHlch(55.25, 59.09, 112.24°)
OKLaboklab(60.66% -0.0672 0.1186)
OKLCHoklch(60.66% 0.136 119.5)
XYZxyz(17.5552, 23.1727, 4.3069)
Luminance0.2317 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D16 #2A168D
analogous
#8D6616 #798D16 #3E8D16
triadic
#798D16 #16798D #8D1679
tetradic
#798D16 #168D66 #2A168D #8D163E
square
#798D16 #168D66 #2A168D #8D163E
split-complementary
#798D16 #163E8D #66168D
monochromatic
#1E2305 #4C580E #798D16 #A6C21E #C5E13D

Accessibility & contrast

On white

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

On black

5.63
#798D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D16
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D16#FFFFFF#000000##000000
##798D161.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798d16;
/* rgb */ color: rgb(121, 141, 22);
/* oklch */ color: oklch(60.7% 0.136 119.5);
Tailwind
colors: {
  custom: {
    50: '#a3ae61',
    500: '#798d16',
    950: '#000000',
  },
}
SCSS
$custom: #798d16;
$custom-light: #a3ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#798d16",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 70.084,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60661,
    "c": 0.13632,
    "h": 119.5
  },
  "luminance": 0.23173
}

Semantic roles & 50–950 ramp

primary
#798D16
secondary
#543EC1
accent
#38F057
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798D16

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

Preview Lab → · Contrast checker → · Palette generator →

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