#798F1F#798F1F

#798F1F is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.134 H 120.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#798F1F
RGBrgb(121, 143, 31)
HSLhsl(72, 64%, 34%)
HSVhsv(72, 78%, 56%)
CMYKcmyk(15.4%, 0%, 78.3%, 43.9%)
CIE-LABlab(55.90, -23.00, 52.60)
CIE-LCHlch(55.90, 57.41, 113.62°)
OKLaboklab(61.2% -0.0683 0.1157)
OKLCHoklch(61.2% 0.134 120.5)
XYZxyz(17.9553, 23.8088, 4.9457)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F1F #351F8F
analogous
#8F6D1F #798F1F #418F1F
triadic
#798F1F #1F798F #8F1F79
tetradic
#798F1F #1F8F6D #351F8F #8F1F41
square
#798F1F #1F8F6D #351F8F #8F1F41
split-complementary
#798F1F #1F418F #6D1F8F
monochromatic
#242A09 #4E5D14 #798F1F #A4C12A #BED94F

Accessibility & contrast

On white

3.64
#798F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F1F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F1F#FFFFFF#000000##000000
##798F1F1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f1f;
/* rgb */ color: rgb(121, 143, 31);
/* oklch */ color: oklch(61.2% 0.134 120.5);
Tailwind
colors: {
  custom: {
    50: '#a3af65',
    500: '#798f1f',
    950: '#000000',
  },
}
SCSS
$custom: #798f1f;
$custom-light: #a3af65;
$custom-dark: #000000;
JSON
{
  "hex": "#798f1f",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 71.786,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61195,
    "c": 0.13436,
    "h": 120.5
  },
  "luminance": 0.23809
}

Semantic roles & 50–950 ramp

primary
#798F1F
secondary
#634EBC
accent
#40E761
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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