#798D2A#798D2A

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

Color values

HEX#798D2A
RGBrgb(121, 141, 42)
HSLhsl(72, 54%, 36%)
HSVhsv(72, 70%, 55%)
CMYKcmyk(14.2%, 0%, 70.2%, 44.7%)
CIE-LABlab(55.36, -21.38, 48.02)
CIE-LCHlch(55.36, 52.57, 114.00°)
OKLaboklab(60.79% -0.0628 0.108)
OKLCHoklch(60.79% 0.125 120.2)
XYZxyz(17.8282, 23.2819, 5.7447)
Luminance0.2328 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D2A #3E2A8D
analogous
#8D6F2A #798D2A #478D2A
triadic
#798D2A #2A798D #8D2A79
tetradic
#798D2A #2A8D6F #3E2A8D #8D2A47
square
#798D2A #2A8D6F #3E2A8D #8D2A47
split-complementary
#798D2A #2A478D #6F2A8D
monochromatic
#282F0E #515E1C #798D2A #A1BC38 #BAD061

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D2A#FFFFFF#000000##000000
##798D2A1.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)
#96851B
Deuteranopia (green-blind)
#948532
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d2a;
/* rgb */ color: rgb(121, 141, 42);
/* oklch */ color: oklch(60.8% 0.125 120.2);
Tailwind
colors: {
  custom: {
    50: '#a2ae6a',
    500: '#798d2a',
    950: '#000000',
  },
}
SCSS
$custom: #798d2a;
$custom-light: #a2ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798d2a",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 72.121,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60787,
    "c": 0.12491,
    "h": 120.2
  },
  "luminance": 0.23282
}

Semantic roles & 50–950 ramp

primary
#798D2A
secondary
#6F5DB6
accent
#4ADD68
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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