#798E2D#798E2D

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

Color values

HEX#798E2D
RGBrgb(121, 142, 45)
HSLhsl(73, 52%, 37%)
HSVhsv(73, 68%, 56%)
CMYKcmyk(14.8%, 0%, 68.3%, 44.3%)
CIE-LABlab(55.69, -21.69, 47.12)
CIE-LCHlch(55.69, 51.87, 114.71°)
OKLaboklab(61.06% -0.0633 0.1066)
OKLCHoklch(61.06% 0.124 120.7)
XYZxyz(18.0321, 23.6004, 6.0875)
Luminance0.2360 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E2D #422D8E
analogous
#8E732D #798E2D #498E2D
triadic
#798E2D #2D798E #8E2D79
tetradic
#798E2D #2D8E73 #422D8E #8E2D49
square
#798E2D #2D8E73 #422D8E #8E2D49
split-complementary
#798E2D #2D498E #732D8E
monochromatic
#2A3110 #51601E #798E2D #A1BC3C #B8CF67

Accessibility & contrast

On white

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

On black

5.72
#798E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E2D
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E2D#FFFFFF#000000##000000
##798E2D1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861F
Deuteranopia (green-blind)
#948634
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e2d;
/* rgb */ color: rgb(121, 142, 45);
/* oklch */ color: oklch(61.1% 0.124 120.7);
Tailwind
colors: {
  custom: {
    50: '#a2af6c',
    500: '#798e2d',
    950: '#000000',
  },
}
SCSS
$custom: #798e2d;
$custom-light: #a2af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798e2d",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 72.99,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61055,
    "c": 0.12397,
    "h": 120.7
  },
  "luminance": 0.236
}

Semantic roles & 50–950 ramp

primary
#798E2D
secondary
#7461B5
accent
#4CDB6B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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