#798C1F#798C1F

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

Color values

HEX#798C1F
RGBrgb(121, 140, 31)
HSLhsl(70, 64%, 34%)
HSVhsv(70, 78%, 55%)
CMYKcmyk(13.6%, 0%, 77.9%, 45.1%)
CIE-LABlab(54.99, -21.48, 51.76)
CIE-LCHlch(54.99, 56.04, 112.54°)
OKLaboklab(60.47% -0.0641 0.114)
OKLCHoklch(60.47% 0.131 119.4)
XYZxyz(17.5109, 22.9201, 4.7976)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C1F #321F8C
analogous
#8C681F #798C1F #428C1F
triadic
#798C1F #1F798C #8C1F79
tetradic
#798C1F #1F8C68 #321F8C #8C1F42
square
#798C1F #1F8C68 #321F8C #8C1F42
split-complementary
#798C1F #1F428C #681F8C
monochromatic
#222809 #4E5A14 #798C1F #A4BE2A #C0D84E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C1F#FFFFFF#000000##000000
##798C1F1.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)
#958403
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c1f;
/* rgb */ color: rgb(121, 140, 31);
/* oklch */ color: oklch(60.5% 0.131 119.4);
Tailwind
colors: {
  custom: {
    50: '#a3ad64',
    500: '#798c1f',
    950: '#000000',
  },
}
SCSS
$custom: #798c1f;
$custom-light: #a3ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#798c1f",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 70.459,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60465,
    "c": 0.13073,
    "h": 119.4
  },
  "luminance": 0.2292
}

Semantic roles & 50–950 ramp

primary
#798C1F
secondary
#5F4CBB
accent
#41E75E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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