#798B30#798B30

#798B30 is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.4% C 0.118 H 119.6°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#798B30
RGBrgb(121, 139, 48)
HSLhsl(72, 49%, 37%)
HSVhsv(72, 65%, 55%)
CMYKcmyk(12.9%, 0%, 65.5%, 45.5%)
CIE-LABlab(54.81, -19.94, 44.91)
CIE-LCHlch(54.81, 49.13, 113.94°)
OKLaboklab(60.36% -0.0582 0.1024)
OKLCHoklch(60.36% 0.118 119.6)
XYZxyz(17.6516, 22.7437, 6.2558)
Luminance0.2274 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B30 #42308B
analogous
#8B7030 #798B30 #4C8B30
triadic
#798B30 #30798B #8B3079
tetradic
#798B30 #308B70 #42308B #8B304C
square
#798B30 #308B70 #42308B #8B304C
split-complementary
#798B30 #304C8B #70308B
monochromatic
#2A3011 #515E20 #798B30 #A1B840 #B8CC6A

Accessibility & contrast

On white

3.78
#798B30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#798B30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B30
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B30#FFFFFF#000000##000000
##798B301.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948324
Deuteranopia (green-blind)
#928336
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b30;
/* rgb */ color: rgb(121, 139, 48);
/* oklch */ color: oklch(60.4% 0.118 119.6);
Tailwind
colors: {
  custom: {
    50: '#a2ac6d',
    500: '#798b30',
    950: '#000000',
  },
}
SCSS
$custom: #798b30;
$custom-light: #a2ac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#798b30",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 48
  },
  "hsl": {
    "h": 71.868,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60356,
    "c": 0.11774,
    "h": 119.6
  },
  "luminance": 0.22744
}

Semantic roles & 50–950 ramp

primary
#798B30
secondary
#7464B3
accent
#50D86B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B30

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

Preview Lab → · Contrast checker → · Palette generator →

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