#798C1A#798C1A

#798C1A is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 60.4% C 0.133 H 119.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#798C1A
RGBrgb(121, 140, 26)
HSLhsl(70, 69%, 33%)
HSVhsv(70, 81%, 55%)
CMYKcmyk(13.6%, 0%, 81.4%, 45.1%)
CIE-LABlab(54.96, -21.71, 53.32)
CIE-LCHlch(54.96, 57.57, 112.15°)
OKLaboklab(60.44% -0.0651 0.1164)
OKLCHoklch(60.44% 0.133 119.2)
XYZxyz(17.4501, 22.8958, 4.4771)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C1A #2D1A8C
analogous
#8C661A #798C1A #408C1A
triadic
#798C1A #1A798C #8C1A79
tetradic
#798C1A #1A8C66 #2D1A8C #8C1A40
square
#798C1A #1A8C66 #2D1A8C #8C1A40
split-complementary
#798C1A #1A408C #661A8C
monochromatic
#202507 #4C5810 #798C1A #A6C024 #C3DC44

Accessibility & contrast

On white

3.76
#798C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#798C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C1A
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C1A#FFFFFF#000000##000000
##798C1A1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#938426
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c1a;
/* rgb */ color: rgb(121, 140, 26);
/* oklch */ color: oklch(60.4% 0.133 119.2);
Tailwind
colors: {
  custom: {
    50: '#a3ad62',
    500: '#798c1a',
    950: '#000000',
  },
}
SCSS
$custom: #798c1a;
$custom-light: #a3ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#798c1a",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 70,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60437,
    "c": 0.13334,
    "h": 119.2
  },
  "luminance": 0.22896
}

Semantic roles & 50–950 ramp

primary
#798C1A
secondary
#5844BE
accent
#3CEC59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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