#798E2A#798E2A

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

Color values

HEX#798E2A
RGBrgb(121, 142, 42)
HSLhsl(73, 54%, 36%)
HSVhsv(73, 70%, 56%)
CMYKcmyk(14.8%, 0%, 70.4%, 44.3%)
CIE-LABlab(55.66, -21.89, 48.33)
CIE-LCHlch(55.66, 53.05, 114.36°)
OKLaboklab(61.03% -0.0642 0.1086)
OKLCHoklch(61.03% 0.126 120.6)
XYZxyz(17.9764, 23.5782, 5.7941)
Luminance0.2358 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E2A #3F2A8E
analogous
#8E712A #798E2A #478E2A
triadic
#798E2A #2A798E #8E2A79
tetradic
#798E2A #2A8E71 #3F2A8E #8E2A47
square
#798E2A #2A8E71 #3F2A8E #8E2A47
split-complementary
#798E2A #2A478E #712A8E
monochromatic
#29300E #515F1C #798E2A #A1BD38 #B9D162

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798E2A#FFFFFF#000000##000000
##798E2A1.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)
#97861A
Deuteranopia (green-blind)
#948632
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e2a;
/* rgb */ color: rgb(121, 142, 42);
/* oklch */ color: oklch(61.0% 0.126 120.6);
Tailwind
colors: {
  custom: {
    50: '#a2af6a',
    500: '#798e2a',
    950: '#000000',
  },
}
SCSS
$custom: #798e2a;
$custom-light: #a2af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798e2a",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 72.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61029,
    "c": 0.12618,
    "h": 120.6
  },
  "luminance": 0.23578
}

Semantic roles & 50–950 ramp

primary
#798E2A
secondary
#705DB6
accent
#4ADE69
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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