#798B1F#798B1F

#798B1F is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 60.2% C 0.130 H 118.9°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B1F
RGBrgb(121, 139, 31)
HSLhsl(70, 64%, 33%)
HSVhsv(70, 78%, 55%)
CMYKcmyk(12.9%, 0%, 77.7%, 45.5%)
CIE-LABlab(54.69, -20.97, 51.48)
CIE-LCHlch(54.69, 55.58, 112.17°)
OKLaboklab(60.22% -0.0627 0.1134)
OKLCHoklch(60.22% 0.13 118.9)
XYZxyz(17.3655, 22.6292, 4.7491)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B1F #311F8B
analogous
#8B671F #798B1F #438B1F
triadic
#798B1F #1F798B #8B1F79
tetradic
#798B1F #1F8B67 #311F8B #8B1F43
square
#798B1F #1F8B67 #311F8B #8B1F43
split-complementary
#798B1F #1F438B #671F8B
monochromatic
#222709 #4D5914 #798B1F #A5BD2A #C0D74D

Accessibility & contrast

On white

3.80
#798B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#798B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B1F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B1F#FFFFFF#000000##000000
##798B1F1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948304
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#818377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b1f;
/* rgb */ color: rgb(121, 139, 31);
/* oklch */ color: oklch(60.2% 0.130 118.9);
Tailwind
colors: {
  custom: {
    50: '#a3ac64',
    500: '#798b1f',
    950: '#000000',
  },
}
SCSS
$custom: #798b1f;
$custom-light: #a3ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#798b1f",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 70,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60222,
    "c": 0.12953,
    "h": 118.9
  },
  "luminance": 0.22629
}

Semantic roles & 50–950 ramp

primary
#798B1F
secondary
#5E4CBA
accent
#41E75D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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