#798C1D#798C1D

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

Color values

HEX#798C1D
RGBrgb(121, 140, 29)
HSLhsl(70, 66%, 33%)
HSVhsv(70, 79%, 55%)
CMYKcmyk(13.6%, 0%, 79.3%, 45.1%)
CIE-LABlab(54.98, -21.58, 52.40)
CIE-LCHlch(54.98, 56.67, 112.38°)
OKLaboklab(60.45% -0.0645 0.115)
OKLCHoklch(60.45% 0.132 119.3)
XYZxyz(17.4854, 22.9099, 4.6631)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C1D #301D8C
analogous
#8C671D #798C1D #428C1D
triadic
#798C1D #1D798C #8C1D79
tetradic
#798C1D #1D8C67 #301D8C #8C1D42
square
#798C1D #1D8C67 #301D8C #8C1D42
split-complementary
#798C1D #1D428C #671D8C
monochromatic
#212708 #4D5912 #798C1D #A5BF28 #C1D94A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C1D#FFFFFF#000000##000000
##798C1D1.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)
#958400
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c1d;
/* rgb */ color: rgb(121, 140, 29);
/* oklch */ color: oklch(60.5% 0.132 119.3);
Tailwind
colors: {
  custom: {
    50: '#a3ad63',
    500: '#798c1d',
    950: '#000000',
  },
}
SCSS
$custom: #798c1d;
$custom-light: #a3ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#798c1d",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 70.27,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60453,
    "c": 0.13182,
    "h": 119.3
  },
  "luminance": 0.2291
}

Semantic roles & 50–950 ramp

primary
#798C1D
secondary
#5D49BC
accent
#3FE95C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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