#788F17#788F17

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

Color values

HEX#788F17
RGBrgb(120, 143, 23)
HSLhsl(72, 72%, 33%)
HSVhsv(72, 84%, 56%)
CMYKcmyk(16.1%, 0%, 83.9%, 43.9%)
CIE-LABlab(55.79, -23.77, 54.87)
CIE-LCHlch(55.79, 59.80, 113.42°)
OKLaboklab(61.08% -0.0709 0.1192)
OKLCHoklch(61.08% 0.139 120.7)
XYZxyz(17.7232, 23.6999, 4.4513)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788F17 #2E178F
analogous
#8F6A17 #788F17 #3C8F17
triadic
#788F17 #17788F #8F1778
tetradic
#788F17 #178F6A #2E178F #8F173C
square
#788F17 #178F6A #2E178F #8F173C
split-complementary
#788F17 #173C8F #6A178F
monochromatic
#202606 #4C5A0F #788F17 #A4C41F #C2E040

Accessibility & contrast

On white

3.66
#788F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#788F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788F17
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788F17#FFFFFF#000000##000000
##788F171.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#7F877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #788f17;
/* rgb */ color: rgb(120, 143, 23);
/* oklch */ color: oklch(61.1% 0.139 120.7);
Tailwind
colors: {
  custom: {
    50: '#a3af61',
    500: '#788f17',
    950: '#000000',
  },
}
SCSS
$custom: #788f17;
$custom-light: #a3af61;
$custom-dark: #000000;
JSON
{
  "hex": "#788f17",
  "rgb": {
    "r": 120,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 71.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61076,
    "c": 0.13868,
    "h": 120.7
  },
  "luminance": 0.237
}

Semantic roles & 50–950 ramp

primary
#788F17
secondary
#5A41C1
accent
#39EF5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788F17

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

Preview Lab → · Contrast checker → · Palette generator →

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