#788E20#788E20

#788E20 is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.9% C 0.133 H 120.6°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#788E20
RGBrgb(120, 142, 32)
HSLhsl(72, 63%, 34%)
HSVhsv(72, 77%, 56%)
CMYKcmyk(15.5%, 0%, 77.5%, 44.3%)
CIE-LABlab(55.53, -22.88, 51.89)
CIE-LCHlch(55.53, 56.71, 113.80°)
OKLaboklab(60.88% -0.0678 0.1145)
OKLCHoklch(60.88% 0.133 120.6)
XYZxyz(17.6798, 23.4434, 4.9599)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E20 #36208E
analogous
#8E6D20 #788E20 #418E20
triadic
#788E20 #20788E #8E2078
tetradic
#788E20 #208E6D #36208E #8E2041
square
#788E20 #208E6D #36208E #8E2041
split-complementary
#788E20 #20418E #6D208E
monochromatic
#242A09 #4E5C15 #788E20 #A2C02B #BDD851

Accessibility & contrast

On white

3.69
#788E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#788E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788E20
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788E20#FFFFFF#000000##000000
##788E201.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978505
Deuteranopia (green-blind)
#95852A
Tritanopia (blue-blind)
#7F8679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #788e20;
/* rgb */ color: rgb(120, 142, 32);
/* oklch */ color: oklch(60.9% 0.133 120.6);
Tailwind
colors: {
  custom: {
    50: '#a2af65',
    500: '#788e20',
    950: '#000000',
  },
}
SCSS
$custom: #788e20;
$custom-light: #a2af65;
$custom-dark: #000000;
JSON
{
  "hex": "#788e20",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 72,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.6088,
    "c": 0.13302,
    "h": 120.6
  },
  "luminance": 0.23443
}

Semantic roles & 50–950 ramp

primary
#788E20
secondary
#644FBB
accent
#42E662
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788E20

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

Preview Lab → · Contrast checker → · Palette generator →

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