#798F20#798F20

#798F20 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.134 H 120.6°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#798F20
RGBrgb(121, 143, 32)
HSLhsl(72, 63%, 34%)
HSVhsv(72, 78%, 56%)
CMYKcmyk(15.4%, 0%, 77.6%, 43.9%)
CIE-LABlab(55.90, -22.95, 52.27)
CIE-LCHlch(55.90, 57.09, 113.71°)
OKLaboklab(61.2% -0.068 0.1152)
OKLCHoklch(61.2% 0.134 120.6)
XYZxyz(17.9687, 23.8142, 5.0162)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F20 #36208F
analogous
#8F6E20 #798F20 #428F20
triadic
#798F20 #20798F #8F2079
tetradic
#798F20 #208F6E #36208F #8F2042
square
#798F20 #208F6E #36208F #8F2042
split-complementary
#798F20 #20428F #6E208F
monochromatic
#242B0A #4F5D15 #798F20 #A3C12B #BDD851

Accessibility & contrast

On white

3.64
#798F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F20
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F20#FFFFFF#000000##000000
##798F201.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988604
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f20;
/* rgb */ color: rgb(121, 143, 32);
/* oklch */ color: oklch(61.2% 0.134 120.6);
Tailwind
colors: {
  custom: {
    50: '#a3af65',
    500: '#798f20',
    950: '#000000',
  },
}
SCSS
$custom: #798f20;
$custom-light: #a3af65;
$custom-dark: #000000;
JSON
{
  "hex": "#798f20",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 71.892,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61201,
    "c": 0.1338,
    "h": 120.6
  },
  "luminance": 0.23814
}

Semantic roles & 50–950 ramp

primary
#798F20
secondary
#654FBB
accent
#41E662
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F20

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

Preview Lab → · Contrast checker → · Palette generator →

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