#798C20#798C20

#798C20 is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 60.5% C 0.130 H 119.4°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#798C20
RGBrgb(121, 140, 32)
HSLhsl(71, 63%, 34%)
HSVhsv(71, 77%, 55%)
CMYKcmyk(13.6%, 0%, 77.1%, 45.1%)
CIE-LABlab(55.00, -21.44, 51.42)
CIE-LCHlch(55.00, 55.71, 112.63°)
OKLaboklab(60.47% -0.0639 0.1134)
OKLCHoklch(60.47% 0.13 119.4)
XYZxyz(17.5243, 22.9255, 4.8681)
Luminance0.2293 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C20 #33208C
analogous
#8C6920 #798C20 #438C20
triadic
#798C20 #20798C #8C2079
tetradic
#798C20 #208C69 #33208C #8C2043
square
#798C20 #208C69 #33208C #8C2043
split-complementary
#798C20 #20438C #69208C
monochromatic
#232809 #4E5A15 #798C20 #A4BE2B #BFD750

Accessibility & contrast

On white

3.76
#798C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#798C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C20
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C20#FFFFFF#000000##000000
##798C201.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958406
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c20;
/* rgb */ color: rgb(121, 140, 32);
/* oklch */ color: oklch(60.5% 0.130 119.4);
Tailwind
colors: {
  custom: {
    50: '#a3ad65',
    500: '#798c20',
    950: '#000000',
  },
}
SCSS
$custom: #798c20;
$custom-light: #a3ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#798c20",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 70.556,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60471,
    "c": 0.13017,
    "h": 119.4
  },
  "luminance": 0.22925
}

Semantic roles & 50–950 ramp

primary
#798C20
secondary
#614EBA
accent
#42E65F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C20

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

Preview Lab → · Contrast checker → · Palette generator →

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