#798B27#798B27

#798B27 is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.125 H 119.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#798B27
RGBrgb(121, 139, 39)
HSLhsl(71, 56%, 35%)
HSVhsv(71, 72%, 55%)
CMYKcmyk(12.9%, 0%, 71.9%, 45.5%)
CIE-LABlab(54.74, -20.54, 48.59)
CIE-LCHlch(54.74, 52.76, 112.91°)
OKLaboklab(60.28% -0.0608 0.1087)
OKLCHoklch(60.28% 0.125 119.2)
XYZxyz(17.4843, 22.6768, 5.3750)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B27 #39278B
analogous
#8B6B27 #798B27 #478B27
triadic
#798B27 #27798B #8B2779
tetradic
#798B27 #278B6B #39278B #8B2747
square
#798B27 #278B6B #39278B #8B2747
split-complementary
#798B27 #27478B #6B278B
monochromatic
#262B0C #4F5B1A #798B27 #A3BB34 #BCD15B

Accessibility & contrast

On white

3.79
#798B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#798B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B27
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B27#FFFFFF#000000##000000
##798B271.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948316
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b27;
/* rgb */ color: rgb(121, 139, 39);
/* oklch */ color: oklch(60.3% 0.125 119.2);
Tailwind
colors: {
  custom: {
    50: '#a3ac68',
    500: '#798b27',
    950: '#000000',
  },
}
SCSS
$custom: #798b27;
$custom-light: #a3ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#798b27",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 70.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60278,
    "c": 0.12452,
    "h": 119.2
  },
  "luminance": 0.22677
}

Semantic roles & 50–950 ramp

primary
#798B27
secondary
#6958B6
accent
#48DF64
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B27

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

Preview Lab → · Contrast checker → · Palette generator →

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