#798B2D#798B2D

#798B2D is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.120 H 119.5°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#798B2D
RGBrgb(121, 139, 45)
HSLhsl(71, 51%, 36%)
HSVhsv(71, 68%, 55%)
CMYKcmyk(12.9%, 0%, 67.6%, 45.5%)
CIE-LABlab(54.78, -20.15, 46.18)
CIE-LCHlch(54.78, 50.39, 113.57°)
OKLaboklab(60.33% -0.0591 0.1046)
OKLCHoklch(60.33% 0.12 119.5)
XYZxyz(17.5917, 22.7197, 5.9407)
Luminance0.2272 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B2D #3F2D8B
analogous
#8B6E2D #798B2D #4A8B2D
triadic
#798B2D #2D798B #8B2D79
tetradic
#798B2D #2D8B6E #3F2D8B #8B2D4A
square
#798B2D #2D8B6E #3F2D8B #8B2D4A
split-complementary
#798B2D #2D4A8B #6E2D8B
monochromatic
#292F0F #515D1E #798B2D #A1B93C #B9CD65

Accessibility & contrast

On white

3.79
#798B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#798B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B2D
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B2D#FFFFFF#000000##000000
##798B2D1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798b2d;
/* rgb */ color: rgb(121, 139, 45);
/* oklch */ color: oklch(60.3% 0.120 119.5);
Tailwind
colors: {
  custom: {
    50: '#a2ac6b',
    500: '#798b2d',
    950: '#000000',
  },
}
SCSS
$custom: #798b2d;
$custom-light: #a2ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798b2d",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 71.489,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60328,
    "c": 0.12012,
    "h": 119.5
  },
  "luminance": 0.2272
}

Semantic roles & 50–950 ramp

primary
#798B2D
secondary
#7060B4
accent
#4DDB68
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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