#788E1A#788E1A

#788E1A is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.8% C 0.136 H 120.5°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#788E1A
RGBrgb(120, 142, 26)
HSLhsl(71, 69%, 33%)
HSVhsv(71, 82%, 56%)
CMYKcmyk(15.5%, 0%, 81.7%, 44.3%)
CIE-LABlab(55.50, -23.15, 53.77)
CIE-LCHlch(55.50, 58.54, 113.30°)
OKLaboklab(60.85% -0.069 0.1174)
OKLCHoklch(60.85% 0.136 120.5)
XYZxyz(17.6055, 23.4137, 4.5689)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E1A #301A8E
analogous
#8E6A1A #788E1A #3E8E1A
triadic
#788E1A #1A788E #8E1A78
tetradic
#788E1A #1A8E6A #301A8E #8E1A3E
square
#788E1A #1A8E6A #301A8E #8E1A3E
split-complementary
#788E1A #1A3E8E #6A1A8E
monochromatic
#212707 #4C5A11 #788E1A #A4C223 #C0DD45

Accessibility & contrast

On white

3.70
#788E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#788E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788E1A
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788E1A#FFFFFF#000000##000000
##788E1A1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#7F8679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #788e1a;
/* rgb */ color: rgb(120, 142, 26);
/* oklch */ color: oklch(60.8% 0.136 120.5);
Tailwind
colors: {
  custom: {
    50: '#a2af62',
    500: '#788e1a',
    950: '#000000',
  },
}
SCSS
$custom: #788e1a;
$custom-light: #a2af62;
$custom-dark: #000000;
JSON
{
  "hex": "#788e1a",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 71.379,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60846,
    "c": 0.13614,
    "h": 120.5
  },
  "luminance": 0.23414
}

Semantic roles & 50–950 ramp

primary
#788E1A
secondary
#5C45BE
accent
#3CEC5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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