#798D27#798D27

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

Color values

HEX#798D27
RGBrgb(121, 141, 39)
HSLhsl(72, 57%, 35%)
HSVhsv(72, 72%, 55%)
CMYKcmyk(14.2%, 0%, 72.3%, 44.7%)
CIE-LABlab(55.34, -21.56, 49.19)
CIE-LCHlch(55.34, 53.71, 113.67°)
OKLaboklab(60.76% -0.0636 0.11)
OKLCHoklch(60.76% 0.127 120)
XYZxyz(17.7766, 23.2613, 5.4724)
Luminance0.2326 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D27 #3B278D
analogous
#8D6E27 #798D27 #468D27
triadic
#798D27 #27798D #8D2779
tetradic
#798D27 #278D6E #3B278D #8D2746
square
#798D27 #278D6E #3B278D #8D2746
split-complementary
#798D27 #27468D #6E278D
monochromatic
#272D0C #505D1A #798D27 #A2BD34 #BBD25C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D27#FFFFFF#000000##000000
##798D271.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)
#968516
Deuteranopia (green-blind)
#94852F
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d27;
/* rgb */ color: rgb(121, 141, 39);
/* oklch */ color: oklch(60.8% 0.127 120.0);
Tailwind
colors: {
  custom: {
    50: '#a3ae68',
    500: '#798d27',
    950: '#000000',
  },
}
SCSS
$custom: #798d27;
$custom-light: #a3ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#798d27",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 71.765,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60763,
    "c": 0.12701,
    "h": 120
  },
  "luminance": 0.23261
}

Semantic roles & 50–950 ramp

primary
#798D27
secondary
#6B59B7
accent
#48E066
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D27

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

Preview Lab → · Contrast checker → · Palette generator →

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