#798C26#798C26

#798C26 is a mid, vivid yellow-green. Relative luminance 0.230; OKLCH L 60.5% C 0.126 H 119.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#798C26
RGBrgb(121, 140, 38)
HSLhsl(71, 57%, 35%)
HSVhsv(71, 73%, 55%)
CMYKcmyk(13.6%, 0%, 72.9%, 45.1%)
CIE-LABlab(55.03, -21.11, 49.27)
CIE-LCHlch(55.03, 53.61, 113.19°)
OKLaboklab(60.51% -0.0624 0.11)
OKLCHoklch(60.51% 0.126 119.6)
XYZxyz(17.6134, 22.9611, 5.3374)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C26 #39268C
analogous
#8C6C26 #798C26 #468C26
triadic
#798C26 #26798C #8C2679
tetradic
#798C26 #268C6C #39268C #8C2646
square
#798C26 #268C6C #39268C #8C2646
split-complementary
#798C26 #26468C #6C268C
monochromatic
#262C0C #4F5C19 #798C26 #A3BC33 #BCD25A

Accessibility & contrast

On white

3.76
#798C26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#798C26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C26
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C26#FFFFFF#000000##000000
##798C261.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958414
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c26;
/* rgb */ color: rgb(121, 140, 38);
/* oklch */ color: oklch(60.5% 0.126 119.6);
Tailwind
colors: {
  custom: {
    50: '#a3ad68',
    500: '#798c26',
    950: '#000000',
  },
}
SCSS
$custom: #798c26;
$custom-light: #a3ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#798c26",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 38
  },
  "hsl": {
    "h": 71.176,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60513,
    "c": 0.12644,
    "h": 119.6
  },
  "luminance": 0.22961
}

Semantic roles & 50–950 ramp

primary
#798C26
secondary
#6957B7
accent
#47E164
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C26

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

Preview Lab → · Contrast checker → · Palette generator →

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