#798D1F#798D1F

#798D1F is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.132 H 119.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#798D1F
RGBrgb(121, 141, 31)
HSLhsl(71, 64%, 34%)
HSVhsv(71, 78%, 55%)
CMYKcmyk(14.2%, 0%, 78%, 44.7%)
CIE-LABlab(55.29, -21.99, 52.04)
CIE-LCHlch(55.29, 56.49, 112.91°)
OKLaboklab(60.71% -0.0655 0.1145)
OKLCHoklch(60.71% 0.132 119.8)
XYZxyz(17.6577, 23.2137, 4.8465)
Luminance0.2321 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D1F #331F8D
analogous
#8D6A1F #798D1F #428D1F
triadic
#798D1F #1F798D #8D1F79
tetradic
#798D1F #1F8D6A #331F8D #8D1F42
square
#798D1F #1F8D6A #331F8D #8D1F42
split-complementary
#798D1F #1F428D #6A1F8D
monochromatic
#232909 #4E5B14 #798D1F #A4BF2A #BFD84E

Accessibility & contrast

On white

3.72
#798D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#798D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D1F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D1F#FFFFFF#000000##000000
##798D1F1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968503
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#808578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d1f;
/* rgb */ color: rgb(121, 141, 31);
/* oklch */ color: oklch(60.7% 0.132 119.8);
Tailwind
colors: {
  custom: {
    50: '#a3ae64',
    500: '#798d1f',
    950: '#000000',
  },
}
SCSS
$custom: #798d1f;
$custom-light: #a3ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#798d1f",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 70.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60708,
    "c": 0.13194,
    "h": 119.8
  },
  "luminance": 0.23214
}

Semantic roles & 50–950 ramp

primary
#798D1F
secondary
#614DBB
accent
#41E75F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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