#798C27#798C27

#798C27 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#798C27
RGBrgb(121, 140, 39)
HSLhsl(71, 56%, 35%)
HSVhsv(71, 72%, 55%)
CMYKcmyk(13.6%, 0%, 72.1%, 45.1%)
CIE-LABlab(55.04, -21.05, 48.89)
CIE-LCHlch(55.04, 53.23, 113.30°)
OKLaboklab(60.52% -0.0622 0.1093)
OKLCHoklch(60.52% 0.126 119.6)
XYZxyz(17.6298, 22.9677, 5.4235)
Luminance0.2297 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C27 #3A278C
analogous
#8C6C27 #798C27 #468C27
triadic
#798C27 #27798C #8C2779
tetradic
#798C27 #278C6C #3A278C #8C2746
square
#798C27 #278C6C #3A278C #8C2746
split-complementary
#798C27 #27468C #6C278C
monochromatic
#262C0C #505C1A #798C27 #A2BC34 #BBD25C

Accessibility & contrast

On white

3.75
#798C27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798C27#FFFFFF#000000##000000
##798C271.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798c27;
/* rgb */ color: rgb(121, 140, 39);
/* oklch */ color: oklch(60.5% 0.126 119.6);
Tailwind
colors: {
  custom: {
    50: '#a3ad68',
    500: '#798c27',
    950: '#000000',
  },
}
SCSS
$custom: #798c27;
$custom-light: #a3ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#798c27",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 39
  },
  "hsl": {
    "h": 71.287,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.6052,
    "c": 0.12576,
    "h": 119.6
  },
  "luminance": 0.22968
}

Semantic roles & 50–950 ramp

primary
#798C27
secondary
#6A58B7
accent
#48E065
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C27

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

Preview Lab → · Contrast checker → · Palette generator →

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