#788C20#788C20

#788C20 is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 60.4% C 0.131 H 119.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#788C20
RGBrgb(120, 140, 32)
HSLhsl(71, 63%, 34%)
HSVhsv(71, 77%, 55%)
CMYKcmyk(14.3%, 0%, 77.1%, 45.1%)
CIE-LABlab(54.92, -21.87, 51.33)
CIE-LCHlch(54.92, 55.79, 113.08°)
OKLaboklab(60.39% -0.065 0.1133)
OKLCHoklch(60.39% 0.131 119.9)
XYZxyz(17.3849, 22.8536, 4.8616)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788C20 #34208C
analogous
#8C6A20 #788C20 #428C20
triadic
#788C20 #20788C #8C2078
tetradic
#788C20 #208C6A #34208C #8C2042
square
#788C20 #208C6A #34208C #8C2042
split-complementary
#788C20 #20428C #6A208C
monochromatic
#232809 #4D5A15 #788C20 #A3BE2B #BED750

Accessibility & contrast

On white

3.77
#788C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#788C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788C20
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788C20#FFFFFF#000000##000000
##788C201.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958406
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#7F8478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #788c20;
/* rgb */ color: rgb(120, 140, 32);
/* oklch */ color: oklch(60.4% 0.131 119.9);
Tailwind
colors: {
  custom: {
    50: '#a2ad65',
    500: '#788c20',
    950: '#000000',
  },
}
SCSS
$custom: #788c20;
$custom-light: #a2ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#788c20",
  "rgb": {
    "r": 120,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 71.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60393,
    "c": 0.13058,
    "h": 119.9
  },
  "luminance": 0.22854
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #788C20

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

Preview Lab → · Contrast checker → · Palette generator →

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