#798B20#798B20

#798B20 is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 60.2% C 0.129 H 119.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B20
RGBrgb(121, 139, 32)
HSLhsl(70, 63%, 34%)
HSVhsv(70, 77%, 55%)
CMYKcmyk(12.9%, 0%, 77%, 45.5%)
CIE-LABlab(54.69, -20.92, 51.14)
CIE-LCHlch(54.69, 55.25, 112.25°)
OKLaboklab(60.23% -0.0625 0.1128)
OKLCHoklch(60.23% 0.129 119)
XYZxyz(17.3789, 22.6346, 4.8196)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B20 #32208B
analogous
#8B6720 #798B20 #448B20
triadic
#798B20 #20798B #8B2079
tetradic
#798B20 #208B67 #32208B #8B2044
square
#798B20 #208B67 #32208B #8B2044
split-complementary
#798B20 #20448B #67208B
monochromatic
#222809 #4E5915 #798B20 #A4BD2B #C0D64F

Accessibility & contrast

On white

3.80
#798B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#798B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B20
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B20#FFFFFF#000000##000000
##798B201.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798b20;
/* rgb */ color: rgb(121, 139, 32);
/* oklch */ color: oklch(60.2% 0.129 119.0);
Tailwind
colors: {
  custom: {
    50: '#a3ac64',
    500: '#798b20',
    950: '#000000',
  },
}
SCSS
$custom: #798b20;
$custom-light: #a3ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#798b20",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 70.093,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60228,
    "c": 0.12896,
    "h": 119
  },
  "luminance": 0.22634
}

Semantic roles & 50–950 ramp

primary
#798B20
secondary
#5F4DBA
accent
#42E65E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B20

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

Preview Lab → · Contrast checker → · Palette generator →

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