#798F31#798F31

#798F31 is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.3% C 0.122 H 121.4°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#798F31
RGBrgb(121, 143, 49)
HSLhsl(74, 49%, 38%)
HSVhsv(74, 66%, 56%)
CMYKcmyk(15.4%, 0%, 65.7%, 43.9%)
CIE-LABlab(56.02, -21.91, 45.76)
CIE-LCHlch(56.02, 50.73, 115.59°)
OKLaboklab(61.33% -0.0636 0.1043)
OKLCHoklch(61.33% 0.122 121.4)
XYZxyz(18.2622, 23.9316, 6.5623)
Luminance0.2393 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F31 #47318F
analogous
#8F7631 #798F31 #4A8F31
triadic
#798F31 #31798F #8F3179
tetradic
#798F31 #318F76 #47318F #8F314A
square
#798F31 #318F76 #47318F #8F314A
split-complementary
#798F31 #314A8F #76318F
monochromatic
#2C3412 #526121 #798F31 #A0BD41 #B7CD6D

Accessibility & contrast

On white

3.63
#798F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#798F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F31
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F31#FFFFFF#000000##000000
##798F311.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988725
Deuteranopia (green-blind)
#958638
Tritanopia (blue-blind)
#7F887C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f31;
/* rgb */ color: rgb(121, 143, 49);
/* oklch */ color: oklch(61.3% 0.122 121.4);
Tailwind
colors: {
  custom: {
    50: '#a2af6e',
    500: '#798f31',
    950: '#000000',
  },
}
SCSS
$custom: #798f31;
$custom-light: #a2af6e;
$custom-dark: #000000;
JSON
{
  "hex": "#798f31",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 74.043,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61334,
    "c": 0.12214,
    "h": 121.4
  },
  "luminance": 0.23932
}

Semantic roles & 50–950 ramp

primary
#798F31
secondary
#7967B5
accent
#4FD96F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F31

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

Preview Lab → · Contrast checker → · Palette generator →

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