#798C1E#798C1E

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

Color values

HEX#798C1E
RGBrgb(121, 140, 30)
HSLhsl(70, 65%, 33%)
HSVhsv(70, 79%, 55%)
CMYKcmyk(13.6%, 0%, 78.6%, 45.1%)
CIE-LABlab(54.98, -21.53, 52.08)
CIE-LCHlch(54.98, 56.36, 112.46°)
OKLaboklab(60.46% -0.0643 0.1145)
OKLCHoklch(60.46% 0.131 119.3)
XYZxyz(17.4980, 22.9150, 4.7293)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C1E #311E8C
analogous
#8C681E #798C1E #428C1E
triadic
#798C1E #1E798C #8C1E79
tetradic
#798C1E #1E8C68 #311E8C #8C1E42
square
#798C1E #1E8C68 #311E8C #8C1E42
split-complementary
#798C1E #1E428C #681E8C
monochromatic
#222708 #4D5A13 #798C1E #A5BE29 #C0D94C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C1E#FFFFFF#000000##000000
##798C1E1.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)
#958401
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c1e;
/* rgb */ color: rgb(121, 140, 30);
/* oklch */ color: oklch(60.5% 0.131 119.3);
Tailwind
colors: {
  custom: {
    50: '#a3ad64',
    500: '#798c1e',
    950: '#000000',
  },
}
SCSS
$custom: #798c1e;
$custom-light: #a3ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#798c1e",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 30
  },
  "hsl": {
    "h": 70.364,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60459,
    "c": 0.13128,
    "h": 119.3
  },
  "luminance": 0.22915
}

Semantic roles & 50–950 ramp

primary
#798C1E
secondary
#5E4BBB
accent
#40E85D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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