#798A2A#798A2A

#798A2A is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 60.1% C 0.121 H 118.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#798A2A
RGBrgb(121, 138, 42)
HSLhsl(71, 53%, 35%)
HSVhsv(71, 70%, 54%)
CMYKcmyk(12.3%, 0%, 69.6%, 45.9%)
CIE-LABlab(54.46, -19.84, 47.11)
CIE-LCHlch(54.46, 51.11, 112.84°)
OKLaboklab(60.06% -0.0585 0.1061)
OKLCHoklch(60.06% 0.121 118.9)
XYZxyz(17.3919, 22.4092, 5.5992)
Luminance0.2241 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A2A #3B2A8A
analogous
#8A6B2A #798A2A #498A2A
triadic
#798A2A #2A798A #8A2A79
tetradic
#798A2A #2A8A6B #3B2A8A #8A2A49
square
#798A2A #2A8A6B #3B2A8A #8A2A49
split-complementary
#798A2A #2A498A #6B2A8A
monochromatic
#272C0D #505B1C #798A2A #A2B938 #BBCF60

Accessibility & contrast

On white

3.83
#798A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#798A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A2A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A2A#FFFFFF#000000##000000
##798A2A1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821C
Deuteranopia (green-blind)
#918331
Tritanopia (blue-blind)
#808277
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a2a;
/* rgb */ color: rgb(121, 138, 42);
/* oklch */ color: oklch(60.1% 0.121 118.9);
Tailwind
colors: {
  custom: {
    50: '#a2ac69',
    500: '#798a2a',
    950: '#000000',
  },
}
SCSS
$custom: #798a2a;
$custom-light: #a2ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#798a2a",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 70.625,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.6006,
    "c": 0.12113,
    "h": 118.9
  },
  "luminance": 0.22409
}

Semantic roles & 50–950 ramp

primary
#798A2A
secondary
#6B5BB4
accent
#4BDD65
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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