#798B26#798B26

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

Color values

HEX#798B26
RGBrgb(121, 139, 38)
HSLhsl(71, 57%, 35%)
HSVhsv(71, 73%, 55%)
CMYKcmyk(12.9%, 0%, 72.7%, 45.5%)
CIE-LABlab(54.73, -20.60, 48.98)
CIE-LCHlch(54.73, 53.13, 112.81°)
OKLaboklab(60.27% -0.061 0.1093)
OKLCHoklch(60.27% 0.125 119.2)
XYZxyz(17.4680, 22.6702, 5.2889)
Luminance0.2267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B26 #38268B
analogous
#8B6B26 #798B26 #478B26
triadic
#798B26 #26798B #8B2679
tetradic
#798B26 #268B6B #38268B #8B2647
square
#798B26 #268B6B #38268B #8B2647
split-complementary
#798B26 #26478B #6B268B
monochromatic
#252B0C #4F5B19 #798B26 #A3BB33 #BCD25A

Accessibility & contrast

On white

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

On black

5.53
#798B26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B26
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B26#FFFFFF#000000##000000
##798B261.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948314
Deuteranopia (green-blind)
#92832E
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b26;
/* rgb */ color: rgb(121, 139, 38);
/* oklch */ color: oklch(60.3% 0.125 119.2);
Tailwind
colors: {
  custom: {
    50: '#a3ac67',
    500: '#798b26',
    950: '#000000',
  },
}
SCSS
$custom: #798b26;
$custom-light: #a3ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#798b26",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 38
  },
  "hsl": {
    "h": 70.693,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6027,
    "c": 0.1252,
    "h": 119.2
  },
  "luminance": 0.2267
}

Semantic roles & 50–950 ramp

primary
#798B26
secondary
#6756B7
accent
#47E063
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B26

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

Preview Lab → · Contrast checker → · Palette generator →

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