#798A2B#798A2B

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

Color values

HEX#798A2B
RGBrgb(121, 138, 43)
HSLhsl(71, 52%, 35%)
HSVhsv(71, 69%, 54%)
CMYKcmyk(12.3%, 0%, 68.8%, 45.9%)
CIE-LABlab(54.47, -19.77, 46.70)
CIE-LCHlch(54.47, 50.71, 112.95°)
OKLaboklab(60.07% -0.0582 0.1054)
OKLCHoklch(60.07% 0.12 118.9)
XYZxyz(17.4100, 22.4164, 5.6947)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A2B #3C2B8A
analogous
#8A6B2B #798A2B #498A2B
triadic
#798A2B #2B798A #8A2B79
tetradic
#798A2B #2B8A6B #3C2B8A #8A2B49
square
#798A2B #2B8A6B #3C2B8A #8A2B49
split-complementary
#798A2B #2B498A #6B2B8A
monochromatic
#272D0E #505B1C #798A2B #A2B93A #BBCE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A2B#FFFFFF#000000##000000
##798A2B1.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)
#93821D
Deuteranopia (green-blind)
#918332
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a2b;
/* rgb */ color: rgb(121, 138, 43);
/* oklch */ color: oklch(60.1% 0.120 118.9);
Tailwind
colors: {
  custom: {
    50: '#a2ac6a',
    500: '#798a2b',
    950: '#000000',
  },
}
SCSS
$custom: #798a2b;
$custom-light: #a2ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798a2b",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 70.737,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60068,
    "c": 0.12039,
    "h": 118.9
  },
  "luminance": 0.22416
}

Semantic roles & 50–950 ramp

primary
#798A2B
secondary
#6C5DB4
accent
#4CDC66
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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