#798D2D#798D2D

#798D2D is a mid, vivid yellow-green. Relative luminance 0.233; OKLCH L 60.8% C 0.123 H 120.3°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#798D2D
RGBrgb(121, 141, 45)
HSLhsl(73, 52%, 36%)
HSVhsv(73, 68%, 55%)
CMYKcmyk(14.2%, 0%, 68.1%, 44.7%)
CIE-LABlab(55.38, -21.18, 46.81)
CIE-LCHlch(55.38, 51.38, 114.34°)
OKLaboklab(60.81% -0.0619 0.1059)
OKLCHoklch(60.81% 0.123 120.3)
XYZxyz(17.8840, 23.3042, 6.0381)
Luminance0.2330 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D2D #412D8D
analogous
#8D712D #798D2D #498D2D
triadic
#798D2D #2D798D #8D2D79
tetradic
#798D2D #2D8D71 #412D8D #8D2D49
square
#798D2D #2D8D71 #412D8D #8D2D49
split-complementary
#798D2D #2D498D #712D8D
monochromatic
#29300F #515F1E #798D2D #A1BB3C #B9CE66

Accessibility & contrast

On white

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

On black

5.66
#798D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D2D
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D2D#FFFFFF#000000##000000
##798D2D1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851F
Deuteranopia (green-blind)
#938534
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d2d;
/* rgb */ color: rgb(121, 141, 45);
/* oklch */ color: oklch(60.8% 0.123 120.3);
Tailwind
colors: {
  custom: {
    50: '#a2ae6b',
    500: '#798d2d',
    950: '#000000',
  },
}
SCSS
$custom: #798d2d;
$custom-light: #a2ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798d2d",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 72.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60812,
    "c": 0.12269,
    "h": 120.3
  },
  "luminance": 0.23304
}

Semantic roles & 50–950 ramp

primary
#798D2D
secondary
#7261B5
accent
#4DDB6A
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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