#798D31#798D31

#798D31 is a mid, moderate yellow-green. Relative luminance 0.233; OKLCH L 60.8% C 0.120 H 120.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#798D31
RGBrgb(121, 141, 49)
HSLhsl(73, 48%, 37%)
HSVhsv(73, 65%, 55%)
CMYKcmyk(14.2%, 0%, 65.2%, 44.7%)
CIE-LABlab(55.42, -20.89, 45.12)
CIE-LCHlch(55.42, 49.72, 114.84°)
OKLaboklab(60.85% -0.0607 0.1029)
OKLCHoklch(60.85% 0.12 120.5)
XYZxyz(17.9647, 23.3365, 6.4631)
Luminance0.2334 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D31 #45318D
analogous
#8D7331 #798D31 #4B8D31
triadic
#798D31 #31798D #8D3179
tetradic
#798D31 #318D73 #45318D #8D314B
square
#798D31 #318D73 #45318D #8D314B
split-complementary
#798D31 #314B8D #73318D
monochromatic
#2B3211 #526021 #798D31 #A0BA41 #B7CC6C

Accessibility & contrast

On white

3.71
#798D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#798D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D31
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D31#FFFFFF#000000##000000
##798D311.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968525
Deuteranopia (green-blind)
#938538
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d31;
/* rgb */ color: rgb(121, 141, 49);
/* oklch */ color: oklch(60.8% 0.120 120.5);
Tailwind
colors: {
  custom: {
    50: '#a2ae6e',
    500: '#798d31',
    950: '#000000',
  },
}
SCSS
$custom: #798d31;
$custom-light: #a2ae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#798d31",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 73.043,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60849,
    "c": 0.11952,
    "h": 120.5
  },
  "luminance": 0.23336
}

Semantic roles & 50–950 ramp

primary
#798D31
secondary
#7766B4
accent
#50D86D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798D31

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

Preview Lab → · Contrast checker → · Palette generator →

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