#798D26#798D26

#798D26 is a mid, vivid yellow-green. Relative luminance 0.233; OKLCH L 60.8% C 0.128 H 120.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#798D26
RGBrgb(121, 141, 38)
HSLhsl(72, 58%, 35%)
HSVhsv(72, 73%, 55%)
CMYKcmyk(14.2%, 0%, 73%, 44.7%)
CIE-LABlab(55.33, -21.62, 49.57)
CIE-LCHlch(55.33, 54.08, 113.57°)
OKLaboklab(60.76% -0.0638 0.1106)
OKLCHoklch(60.76% 0.128 120)
XYZxyz(17.7602, 23.2547, 5.3863)
Luminance0.2326 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D26 #3A268D
analogous
#8D6D26 #798D26 #468D26
triadic
#798D26 #26798D #8D2679
tetradic
#798D26 #268D6D #3A268D #8D2646
square
#798D26 #268D6D #3A268D #8D2646
split-complementary
#798D26 #26468D #6D268D
monochromatic
#262D0C #505D19 #798D26 #A2BD33 #BBD35B

Accessibility & contrast

On white

3.72
#798D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#798D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D26
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D26#FFFFFF#000000##000000
##798D261.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968514
Deuteranopia (green-blind)
#94852F
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d26;
/* rgb */ color: rgb(121, 141, 38);
/* oklch */ color: oklch(60.8% 0.128 120.0);
Tailwind
colors: {
  custom: {
    50: '#a3ae68',
    500: '#798d26',
    950: '#000000',
  },
}
SCSS
$custom: #798d26;
$custom-light: #a3ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#798d26",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 71.65,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60755,
    "c": 0.12768,
    "h": 120
  },
  "luminance": 0.23255
}

Semantic roles & 50–950 ramp

primary
#798D26
secondary
#6A57B8
accent
#47E165
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D26

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

Preview Lab → · Contrast checker → · Palette generator →

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