#798E1F#798E1F

#798E1F is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.133 H 120.1°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#798E1F
RGBrgb(121, 142, 31)
HSLhsl(71, 64%, 34%)
HSVhsv(71, 78%, 56%)
CMYKcmyk(14.8%, 0%, 78.2%, 44.3%)
CIE-LABlab(55.59, -22.50, 52.32)
CIE-LCHlch(55.59, 56.95, 113.27°)
OKLaboklab(60.95% -0.0669 0.1151)
OKLCHoklch(60.95% 0.133 120.1)
XYZxyz(17.8058, 23.5099, 4.8959)
Luminance0.2351 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E1F #341F8E
analogous
#8E6C1F #798E1F #428E1F
triadic
#798E1F #1F798E #8E1F79
tetradic
#798E1F #1F8E6C #341F8E #8E1F42
square
#798E1F #1F8E6C #341F8E #8E1F42
split-complementary
#798E1F #1F428E #6C1F8E
monochromatic
#232A09 #4E5C14 #798E1F #A4C02A #BED94F

Accessibility & contrast

On white

3.68
#798E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#798E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E1F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E1F#FFFFFF#000000##000000
##798E1F1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978502
Deuteranopia (green-blind)
#958529
Tritanopia (blue-blind)
#808679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e1f;
/* rgb */ color: rgb(121, 142, 31);
/* oklch */ color: oklch(61.0% 0.133 120.1);
Tailwind
colors: {
  custom: {
    50: '#a3af64',
    500: '#798e1f',
    950: '#000000',
  },
}
SCSS
$custom: #798e1f;
$custom-light: #a3af64;
$custom-dark: #000000;
JSON
{
  "hex": "#798e1f",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 71.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60952,
    "c": 0.13315,
    "h": 120.1
  },
  "luminance": 0.2351
}

Semantic roles & 50–950 ramp

primary
#798E1F
secondary
#624DBB
accent
#41E760
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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