#798D20#798D20

#798D20 is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.131 H 119.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#798D20
RGBrgb(121, 141, 32)
HSLhsl(71, 63%, 34%)
HSVhsv(71, 77%, 55%)
CMYKcmyk(14.2%, 0%, 77.3%, 44.7%)
CIE-LABlab(55.30, -21.94, 51.71)
CIE-LCHlch(55.30, 56.17, 113.00°)
OKLaboklab(60.71% -0.0653 0.114)
OKLCHoklch(60.71% 0.131 119.8)
XYZxyz(17.6711, 23.2191, 4.9170)
Luminance0.2322 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D20 #34208D
analogous
#8D6B20 #798D20 #438D20
triadic
#798D20 #20798D #8D2079
tetradic
#798D20 #208D6B #34208D #8D2043
square
#798D20 #208D6B #34208D #8D2043
split-complementary
#798D20 #20438D #6B208D
monochromatic
#232909 #4E5B15 #798D20 #A4BF2B #BED750

Accessibility & contrast

On white

3.72
#798D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#798D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D20
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D20#FFFFFF#000000##000000
##798D201.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968505
Deuteranopia (green-blind)
#94852A
Tritanopia (blue-blind)
#808578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d20;
/* rgb */ color: rgb(121, 141, 32);
/* oklch */ color: oklch(60.7% 0.131 119.8);
Tailwind
colors: {
  custom: {
    50: '#a3ae65',
    500: '#798d20',
    950: '#000000',
  },
}
SCSS
$custom: #798d20;
$custom-light: #a3ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#798d20",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 71.009,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60714,
    "c": 0.13138,
    "h": 119.8
  },
  "luminance": 0.23219
}

Semantic roles & 50–950 ramp

primary
#798D20
secondary
#624EBA
accent
#42E660
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D20

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

Preview Lab → · Contrast checker → · Palette generator →

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