#798A26#798A26

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

Color values

HEX#798A26
RGBrgb(121, 138, 38)
HSLhsl(70, 57%, 35%)
HSVhsv(70, 72%, 54%)
CMYKcmyk(12.3%, 0%, 72.5%, 45.9%)
CIE-LABlab(54.43, -20.09, 48.68)
CIE-LCHlch(54.43, 52.66, 112.42°)
OKLaboklab(60.03% -0.0596 0.1087)
OKLCHoklch(60.03% 0.124 118.7)
XYZxyz(17.3238, 22.3820, 5.2409)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A26 #37268A
analogous
#8A6926 #798A26 #478A26
triadic
#798A26 #26798A #8A2679
tetradic
#798A26 #268A69 #37268A #8A2647
square
#798A26 #268A69 #37268A #8A2647
split-complementary
#798A26 #26478A #69268A
monochromatic
#252A0C #4F5A19 #798A26 #A3BA33 #BDD159

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A26#FFFFFF#000000##000000
##798A261.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)
#938215
Deuteranopia (green-blind)
#91832E
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a26;
/* rgb */ color: rgb(121, 138, 38);
/* oklch */ color: oklch(60.0% 0.124 118.7);
Tailwind
colors: {
  custom: {
    50: '#a3ac67',
    500: '#798a26',
    950: '#000000',
  },
}
SCSS
$custom: #798a26;
$custom-light: #a3ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#798a26",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 38
  },
  "hsl": {
    "h": 70.2,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60028,
    "c": 0.12397,
    "h": 118.7
  },
  "luminance": 0.22382
}

Semantic roles & 50–950 ramp

primary
#798A26
secondary
#6656B6
accent
#48E062
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A26

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

Preview Lab → · Contrast checker → · Palette generator →

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