#788940#788940

#788940 is a mid, moderate yellow-green. Relative luminance 0.223; OKLCH L 60.0% C 0.101 H 120.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#788940
RGBrgb(120, 137, 64)
HSLhsl(74, 36%, 39%)
HSVhsv(74, 53%, 54%)
CMYKcmyk(12.4%, 0%, 53.3%, 46.3%)
CIE-LABlab(54.30, -17.92, 36.68)
CIE-LCHlch(54.30, 40.83, 116.04°)
OKLaboklab(59.98% -0.0508 0.0867)
OKLCHoklch(59.98% 0.101 120.4)
XYZxyz(17.6169, 22.2546, 8.2170)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788940 #514089
analogous
#897640 #788940 #548940
triadic
#788940 #407889 #894078
tetradic
#788940 #408976 #514089 #894054
square
#788940 #408976 #514089 #894054
split-complementary
#788940 #405489 #764089
monochromatic
#2F3619 #535F2D #788940 #9BB056 #B4C480

Accessibility & contrast

On white

3.85
#788940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#788940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788940
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788940#FFFFFF#000000##000000
##7889401.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918239
Deuteranopia (green-blind)
#8F8244
Tritanopia (blue-blind)
#7E8378
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #788940;
/* rgb */ color: rgb(120, 137, 64);
/* oklch */ color: oklch(60.0% 0.101 120.4);
Tailwind
colors: {
  custom: {
    50: '#a0ab77',
    500: '#788940',
    950: '#000000',
  },
}
SCSS
$custom: #788940;
$custom-light: #a0ab77;
$custom-dark: #000000;
JSON
{
  "hex": "#788940",
  "rgb": {
    "r": 120,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 73.973,
    "s": 36.318,
    "l": 39.412
  },
  "oklch": {
    "l": 0.59979,
    "c": 0.1005,
    "h": 120.4
  },
  "luminance": 0.22255
}

Semantic roles & 50–950 ramp

primary
#788940
secondary
#8477AE
accent
#5BCC76
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #788940

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

Preview Lab → · Contrast checker → · Palette generator →

#788940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva