#798E31#798E31

#798E31 is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.1% C 0.121 H 121.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#798E31
RGBrgb(121, 142, 49)
HSLhsl(74, 49%, 37%)
HSVhsv(74, 65%, 56%)
CMYKcmyk(14.8%, 0%, 65.5%, 44.3%)
CIE-LABlab(55.72, -21.40, 45.44)
CIE-LCHlch(55.72, 50.22, 115.22°)
OKLaboklab(61.09% -0.0621 0.1036)
OKLCHoklch(61.09% 0.121 121)
XYZxyz(18.1128, 23.6327, 6.5125)
Luminance0.2363 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E31 #46318E
analogous
#8E7431 #798E31 #4B8E31
triadic
#798E31 #31798E #8E3179
tetradic
#798E31 #318E74 #46318E #8E314B
square
#798E31 #318E74 #46318E #8E314B
split-complementary
#798E31 #314B8E #74318E
monochromatic
#2B3312 #526121 #798E31 #A0BB41 #B7CD6D

Accessibility & contrast

On white

3.67
#798E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#798E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E31
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E31#FFFFFF#000000##000000
##798E311.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978625
Deuteranopia (green-blind)
#948638
Tritanopia (blue-blind)
#7F877B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e31;
/* rgb */ color: rgb(121, 142, 49);
/* oklch */ color: oklch(61.1% 0.121 121.0);
Tailwind
colors: {
  custom: {
    50: '#a2af6e',
    500: '#798e31',
    950: '#000000',
  },
}
SCSS
$custom: #798e31;
$custom-light: #a2af6e;
$custom-dark: #000000;
JSON
{
  "hex": "#798e31",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 73.548,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61092,
    "c": 0.12083,
    "h": 121
  },
  "luminance": 0.23633
}

Semantic roles & 50–950 ramp

primary
#798E31
secondary
#7867B4
accent
#50D86E
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E31

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

Preview Lab → · Contrast checker → · Palette generator →

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