#788C1D#788C1D

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

Color values

HEX#788C1D
RGBrgb(120, 140, 29)
HSLhsl(71, 66%, 33%)
HSVhsv(71, 79%, 55%)
CMYKcmyk(14.3%, 0%, 79.3%, 45.1%)
CIE-LABlab(54.91, -22.01, 52.31)
CIE-LCHlch(54.91, 56.75, 112.82°)
OKLaboklab(60.38% -0.0656 0.1148)
OKLCHoklch(60.38% 0.132 119.8)
XYZxyz(17.3459, 22.8380, 4.6565)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788C1D #311D8C
analogous
#8C681D #788C1D #408C1D
triadic
#788C1D #1D788C #8C1D78
tetradic
#788C1D #1D8C68 #311D8C #8C1D40
square
#788C1D #1D8C68 #311D8C #8C1D40
split-complementary
#788C1D #1D408C #681D8C
monochromatic
#212708 #4D5912 #788C1D #A3BF28 #C0D94A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788C1D#FFFFFF#000000##000000
##788C1D1.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)
#958400
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#7F8477
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #788c1d;
/* rgb */ color: rgb(120, 140, 29);
/* oklch */ color: oklch(60.4% 0.132 119.8);
Tailwind
colors: {
  custom: {
    50: '#a2ad63',
    500: '#788c1d',
    950: '#000000',
  },
}
SCSS
$custom: #788c1d;
$custom-light: #a2ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#788c1d",
  "rgb": {
    "r": 120,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 70.811,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60375,
    "c": 0.13224,
    "h": 119.8
  },
  "luminance": 0.22838
}

Semantic roles & 50–950 ramp

primary
#788C1D
secondary
#5E49BC
accent
#3FE95E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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