#788D1A#788D1A

#788D1A is a mid, vivid yellow-green. Relative luminance 0.231; OKLCH L 60.6% C 0.135 H 120.1°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#788D1A
RGBrgb(120, 141, 26)
HSLhsl(71, 69%, 33%)
HSVhsv(71, 82%, 55%)
CMYKcmyk(14.9%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.19, -22.65, 53.50)
CIE-LCHlch(55.19, 58.10, 112.95°)
OKLaboklab(60.6% -0.0676 0.1168)
OKLCHoklch(60.6% 0.135 120.1)
XYZxyz(17.4574, 23.1175, 4.5195)
Luminance0.2312 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788D1A #2F1A8D
analogous
#8D691A #788D1A #3E8D1A
triadic
#788D1A #1A788D #8D1A78
tetradic
#788D1A #1A8D69 #2F1A8D #8D1A3E
square
#788D1A #1A8D69 #2F1A8D #8D1A3E
split-complementary
#788D1A #1A3E8D #691A8D
monochromatic
#202607 #4C5910 #788D1A #A4C124 #C1DD45

Accessibility & contrast

On white

3.73
#788D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#788D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788D1A
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788D1A#FFFFFF#000000##000000
##788D1A1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#7F8578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #788d1a;
/* rgb */ color: rgb(120, 141, 26);
/* oklch */ color: oklch(60.6% 0.135 120.1);
Tailwind
colors: {
  custom: {
    50: '#a2ae62',
    500: '#788d1a',
    950: '#000000',
  },
}
SCSS
$custom: #788d1a;
$custom-light: #a2ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#788d1a",
  "rgb": {
    "r": 120,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 70.957,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60602,
    "c": 0.13494,
    "h": 120.1
  },
  "luminance": 0.23117
}

Semantic roles & 50–950 ramp

primary
#788D1A
secondary
#5B45BE
accent
#3CEC5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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