#798D2B#798D2B

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

Color values

HEX#798D2B
RGBrgb(121, 141, 43)
HSLhsl(72, 53%, 36%)
HSVhsv(72, 70%, 55%)
CMYKcmyk(14.2%, 0%, 69.5%, 44.7%)
CIE-LABlab(55.37, -21.31, 47.62)
CIE-LCHlch(55.37, 52.18, 114.11°)
OKLaboklab(60.8% -0.0625 0.1073)
OKLCHoklch(60.8% 0.124 120.2)
XYZxyz(17.8464, 23.2892, 5.8401)
Luminance0.2329 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D2B #3F2B8D
analogous
#8D702B #798D2B #488D2B
triadic
#798D2B #2B798D #8D2B79
tetradic
#798D2B #2B8D70 #3F2B8D #8D2B48
square
#798D2B #2B8D70 #3F2B8D #8D2B48
split-complementary
#798D2B #2B488D #702B8D
monochromatic
#292F0E #515E1D #798D2B #A1BC39 #B9CF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D2B#FFFFFF#000000##000000
##798D2B1.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)
#96851C
Deuteranopia (green-blind)
#948533
Tritanopia (blue-blind)
#808679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d2b;
/* rgb */ color: rgb(121, 141, 43);
/* oklch */ color: oklch(60.8% 0.124 120.2);
Tailwind
colors: {
  custom: {
    50: '#a2ae6a',
    500: '#798d2b',
    950: '#000000',
  },
}
SCSS
$custom: #798d2b;
$custom-light: #a2ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798d2b",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 72.245,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60795,
    "c": 0.12418,
    "h": 120.2
  },
  "luminance": 0.23289
}

Semantic roles & 50–950 ramp

primary
#798D2B
secondary
#705EB6
accent
#4BDD69
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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