#798F26#798F26

#798F26 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.130 H 120.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#798F26
RGBrgb(121, 143, 38)
HSLhsl(73, 58%, 35%)
HSVhsv(73, 73%, 56%)
CMYKcmyk(15.4%, 0%, 73.4%, 43.9%)
CIE-LABlab(55.94, -22.63, 50.16)
CIE-LCHlch(55.94, 55.03, 114.29°)
OKLaboklab(61.24% -0.0666 0.1118)
OKLCHoklch(61.24% 0.13 120.8)
XYZxyz(18.0578, 23.8498, 5.4855)
Luminance0.2385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F26 #3C268F
analogous
#8F7026 #798F26 #458F26
triadic
#798F26 #26798F #8F2679
tetradic
#798F26 #268F70 #3C268F #8F2645
square
#798F26 #268F70 #3C268F #8F2645
split-complementary
#798F26 #26458F #70268F
monochromatic
#272E0C #505F19 #798F26 #A2BF33 #BBD45C

Accessibility & contrast

On white

3.64
#798F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#798F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F26
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F26#FFFFFF#000000##000000
##798F261.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988613
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#80877B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f26;
/* rgb */ color: rgb(121, 143, 38);
/* oklch */ color: oklch(61.2% 0.130 120.8);
Tailwind
colors: {
  custom: {
    50: '#a3af68',
    500: '#798f26',
    950: '#000000',
  },
}
SCSS
$custom: #798f26;
$custom-light: #a3af68;
$custom-dark: #000000;
JSON
{
  "hex": "#798f26",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 38
  },
  "hsl": {
    "h": 72.571,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61242,
    "c": 0.13017,
    "h": 120.8
  },
  "luminance": 0.2385
}

Semantic roles & 50–950 ramp

primary
#798F26
secondary
#6C58B9
accent
#47E167
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F26

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

Preview Lab → · Contrast checker → · Palette generator →

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