#798B31#798B31

#798B31 is a mid, moderate yellow-green. Relative luminance 0.228; OKLCH L 60.4% C 0.117 H 119.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#798B31
RGBrgb(121, 139, 49)
HSLhsl(72, 48%, 37%)
HSVhsv(72, 65%, 55%)
CMYKcmyk(12.9%, 0%, 64.7%, 45.5%)
CIE-LABlab(54.82, -19.86, 44.47)
CIE-LCHlch(54.82, 48.71, 114.07°)
OKLaboklab(60.37% -0.0579 0.1016)
OKLCHoklch(60.37% 0.117 119.7)
XYZxyz(17.6724, 22.7520, 6.3657)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B31 #43318B
analogous
#8B7031 #798B31 #4C8B31
triadic
#798B31 #31798B #8B3179
tetradic
#798B31 #318B70 #43318B #8B314C
square
#798B31 #318B70 #43318B #8B314C
split-complementary
#798B31 #314C8B #70318B
monochromatic
#2A3111 #525E21 #798B31 #A0B841 #B8CB6B

Accessibility & contrast

On white

3.78
#798B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#798B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B31
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B31#FFFFFF#000000##000000
##798B311.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948326
Deuteranopia (green-blind)
#928337
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b31;
/* rgb */ color: rgb(121, 139, 49);
/* oklch */ color: oklch(60.4% 0.117 119.7);
Tailwind
colors: {
  custom: {
    50: '#a2ac6e',
    500: '#798b31',
    950: '#000000',
  },
}
SCSS
$custom: #798b31;
$custom-light: #a2ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#798b31",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 72,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60366,
    "c": 0.11691,
    "h": 119.7
  },
  "luminance": 0.22752
}

Semantic roles & 50–950 ramp

primary
#798B31
secondary
#7565B2
accent
#50D76B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B31

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

Preview Lab → · Contrast checker → · Palette generator →

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