#788C17#788C17

#788C17 is a mid, vivid yellow-green. Relative luminance 0.228; OKLCH L 60.3% C 0.135 H 119.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#788C17
RGBrgb(120, 140, 23)
HSLhsl(70, 72%, 32%)
HSVhsv(70, 84%, 55%)
CMYKcmyk(14.3%, 0%, 83.6%, 45.1%)
CIE-LABlab(54.88, -22.26, 54.08)
CIE-LCHlch(54.88, 58.48, 112.37°)
OKLaboklab(60.34% -0.0668 0.1175)
OKLCHoklch(60.34% 0.135 119.6)
XYZxyz(17.2788, 22.8112, 4.3032)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788C17 #2B178C
analogous
#8C6517 #788C17 #3E8C17
triadic
#788C17 #17788C #8C1778
tetradic
#788C17 #178C65 #2B178C #8C173E
square
#788C17 #178C65 #2B178C #8C173E
split-complementary
#788C17 #173E8C #65178C
monochromatic
#1E2306 #4B570E #788C17 #A5C120 #C4DF3E

Accessibility & contrast

On white

3.78
#788C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#788C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788C17
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788C17#FFFFFF#000000##000000
##788C171.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968300
Deuteranopia (green-blind)
#938424
Tritanopia (blue-blind)
#808477
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #788c17;
/* rgb */ color: rgb(120, 140, 23);
/* oklch */ color: oklch(60.3% 0.135 119.6);
Tailwind
colors: {
  custom: {
    50: '#a2ad61',
    500: '#788c17',
    950: '#000000',
  },
}
SCSS
$custom: #788c17;
$custom-light: #a2ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#788c17",
  "rgb": {
    "r": 120,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 70.256,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60343,
    "c": 0.13514,
    "h": 119.6
  },
  "luminance": 0.22811
}

Semantic roles & 50–950 ramp

primary
#788C17
secondary
#553FBF
accent
#39EF58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788C17

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

Preview Lab → · Contrast checker → · Palette generator →

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