#798B2B#798B2B

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

Color values

HEX#798B2B
RGBrgb(121, 139, 43)
HSLhsl(71, 53%, 36%)
HSVhsv(71, 69%, 55%)
CMYKcmyk(12.9%, 0%, 69.1%, 45.5%)
CIE-LABlab(54.77, -20.29, 47.01)
CIE-LCHlch(54.77, 51.20, 113.34°)
OKLaboklab(60.31% -0.0597 0.106)
OKLCHoklch(60.31% 0.122 119.4)
XYZxyz(17.5541, 22.7047, 5.7427)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B2B #3D2B8B
analogous
#8B6D2B #798B2B #498B2B
triadic
#798B2B #2B798B #8B2B79
tetradic
#798B2B #2B8B6D #3D2B8B #8B2B49
square
#798B2B #2B8B6D #3D2B8B #8B2B49
split-complementary
#798B2B #2B498B #6D2B8B
monochromatic
#282E0E #505C1D #798B2B #A2BA39 #BACE62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B2B#FFFFFF#000000##000000
##798B2B1.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)
#94831D
Deuteranopia (green-blind)
#928332
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b2b;
/* rgb */ color: rgb(121, 139, 43);
/* oklch */ color: oklch(60.3% 0.122 119.4);
Tailwind
colors: {
  custom: {
    50: '#a2ac6a',
    500: '#798b2b',
    950: '#000000',
  },
}
SCSS
$custom: #798b2b;
$custom-light: #a2ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798b2b",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 71.25,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6031,
    "c": 0.12165,
    "h": 119.4
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#798B2B
secondary
#6E5DB5
accent
#4CDC67
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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