#788F1F#788F1F

#788F1F is a mid, vivid yellow-green. Relative luminance 0.237; OKLCH L 61.1% C 0.135 H 121.0°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#788F1F
RGBrgb(120, 143, 31)
HSLhsl(72, 64%, 34%)
HSVhsv(72, 78%, 56%)
CMYKcmyk(16.1%, 0%, 78.3%, 43.9%)
CIE-LABlab(55.82, -23.43, 52.51)
CIE-LCHlch(55.82, 57.50, 114.05°)
OKLaboklab(61.12% -0.0694 0.1156)
OKLCHoklch(61.12% 0.135 121)
XYZxyz(17.8158, 23.7369, 4.9392)
Luminance0.2374 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788F1F #361F8F
analogous
#8F6E1F #788F1F #408F1F
triadic
#788F1F #1F788F #8F1F78
tetradic
#788F1F #1F8F6E #361F8F #8F1F40
square
#788F1F #1F8F6E #361F8F #8F1F40
split-complementary
#788F1F #1F408F #6E1F8F
monochromatic
#242A09 #4E5D14 #788F1F #A2C12A #BDD94F

Accessibility & contrast

On white

3.65
#788F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#788F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788F1F
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788F1F#FFFFFF#000000##000000
##788F1F1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#95862A
Tritanopia (blue-blind)
#7F877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #788f1f;
/* rgb */ color: rgb(120, 143, 31);
/* oklch */ color: oklch(61.1% 0.135 121.0);
Tailwind
colors: {
  custom: {
    50: '#a2af65',
    500: '#788f1f',
    950: '#000000',
  },
}
SCSS
$custom: #788f1f;
$custom-light: #a2af65;
$custom-dark: #000000;
JSON
{
  "hex": "#788f1f",
  "rgb": {
    "r": 120,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 72.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61118,
    "c": 0.13479,
    "h": 121
  },
  "luminance": 0.23737
}

Semantic roles & 50–950 ramp

primary
#788F1F
secondary
#644EBC
accent
#40E763
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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