#788E1F#788E1F

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

Color values

HEX#788E1F
RGBrgb(120, 142, 31)
HSLhsl(72, 64%, 34%)
HSVhsv(72, 78%, 56%)
CMYKcmyk(15.5%, 0%, 78.2%, 44.3%)
CIE-LABlab(55.52, -22.93, 52.22)
CIE-LCHlch(55.52, 57.04, 113.71°)
OKLaboklab(60.87% -0.068 0.115)
OKLCHoklch(60.87% 0.134 120.6)
XYZxyz(17.6664, 23.4380, 4.8894)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E1F #351F8E
analogous
#8E6D1F #788E1F #418E1F
triadic
#788E1F #1F788E #8E1F78
tetradic
#788E1F #1F8E6D #351F8E #8E1F41
square
#788E1F #1F8E6D #351F8E #8E1F41
split-complementary
#788E1F #1F418E #6D1F8E
monochromatic
#232A09 #4E5C14 #788E1F #A2C02A #BDD94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788E1F#FFFFFF#000000##000000
##788E1F1.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)
#978502
Deuteranopia (green-blind)
#95852A
Tritanopia (blue-blind)
#7F8679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #788e1f;
/* rgb */ color: rgb(120, 142, 31);
/* oklch */ color: oklch(60.9% 0.134 120.6);
Tailwind
colors: {
  custom: {
    50: '#a2af64',
    500: '#788e1f',
    950: '#000000',
  },
}
SCSS
$custom: #788e1f;
$custom-light: #a2af64;
$custom-dark: #000000;
JSON
{
  "hex": "#788e1f",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 71.892,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60874,
    "c": 0.13358,
    "h": 120.6
  },
  "luminance": 0.23438
}

Semantic roles & 50–950 ramp

primary
#788E1F
secondary
#634DBB
accent
#41E762
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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