#798B2A#798B2A

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

Color values

HEX#798B2A
RGBrgb(121, 139, 42)
HSLhsl(71, 54%, 35%)
HSVhsv(71, 70%, 55%)
CMYKcmyk(12.9%, 0%, 69.8%, 45.5%)
CIE-LABlab(54.76, -20.35, 47.41)
CIE-LCHlch(54.76, 51.60, 113.23°)
OKLaboklab(60.3% -0.0599 0.1067)
OKLCHoklch(60.3% 0.122 119.3)
XYZxyz(17.5360, 22.6975, 5.6473)
Luminance0.2270 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B2A #3C2A8B
analogous
#8B6C2A #798B2A #488B2A
triadic
#798B2A #2A798B #8B2A79
tetradic
#798B2A #2A8B6C #3C2A8B #8B2A48
square
#798B2A #2A8B6C #3C2A8B #8B2A48
split-complementary
#798B2A #2A488B #6C2A8B
monochromatic
#272D0E #505C1C #798B2A #A2BA38 #BBCF60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B2A#FFFFFF#000000##000000
##798B2A1.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)
#94831B
Deuteranopia (green-blind)
#928331
Tritanopia (blue-blind)
#808378
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b2a;
/* rgb */ color: rgb(121, 139, 42);
/* oklch */ color: oklch(60.3% 0.122 119.3);
Tailwind
colors: {
  custom: {
    50: '#a2ac6a',
    500: '#798b2a',
    950: '#000000',
  },
}
SCSS
$custom: #798b2a;
$custom-light: #a2ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798b2a",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 71.134,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60302,
    "c": 0.1224,
    "h": 119.3
  },
  "luminance": 0.22697
}

Semantic roles & 50–950 ramp

primary
#798B2A
secondary
#6C5CB5
accent
#4BDD66
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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