#798A27#798A27

#798A27 is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 60.0% C 0.123 H 118.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#798A27
RGBrgb(121, 138, 39)
HSLhsl(70, 56%, 35%)
HSVhsv(70, 72%, 54%)
CMYKcmyk(12.3%, 0%, 71.7%, 45.9%)
CIE-LABlab(54.44, -20.03, 48.29)
CIE-LCHlch(54.44, 52.28, 112.52°)
OKLaboklab(60.04% -0.0593 0.1081)
OKLCHoklch(60.04% 0.123 118.8)
XYZxyz(17.3402, 22.3885, 5.3270)
Luminance0.2239 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A27 #38278A
analogous
#8A6A27 #798A27 #488A27
triadic
#798A27 #27798A #8A2779
tetradic
#798A27 #278A6A #38278A #8A2748
square
#798A27 #278A6A #38278A #8A2748
split-complementary
#798A27 #27488A #6A278A
monochromatic
#252B0C #4F5A1A #798A27 #A3BA34 #BCD15B

Accessibility & contrast

On white

3.83
#798A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#798A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A27
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A27#FFFFFF#000000##000000
##798A271.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938217
Deuteranopia (green-blind)
#91832F
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a27;
/* rgb */ color: rgb(121, 138, 39);
/* oklch */ color: oklch(60.0% 0.123 118.8);
Tailwind
colors: {
  custom: {
    50: '#a2ac68',
    500: '#798a27',
    950: '#000000',
  },
}
SCSS
$custom: #798a27;
$custom-light: #a2ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#798a27",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 70.303,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60036,
    "c": 0.12328,
    "h": 118.8
  },
  "luminance": 0.22388
}

Semantic roles & 50–950 ramp

primary
#798A27
secondary
#6757B6
accent
#49DF62
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A27

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

Preview Lab → · Contrast checker → · Palette generator →

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