#788D17#788D17

#788D17 is a mid, vivid yellow-green. Relative luminance 0.231; OKLCH L 60.6% C 0.136 H 120.0°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#788D17
RGBrgb(120, 141, 23)
HSLhsl(71, 72%, 32%)
HSVhsv(71, 84%, 55%)
CMYKcmyk(14.9%, 0%, 83.7%, 44.7%)
CIE-LABlab(55.18, -22.77, 54.34)
CIE-LCHlch(55.18, 58.92, 112.73°)
OKLaboklab(60.59% -0.0682 0.1181)
OKLCHoklch(60.59% 0.136 120)
XYZxyz(17.4256, 23.1048, 4.3521)
Luminance0.2311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788D17 #2C178D
analogous
#8D6717 #788D17 #3D8D17
triadic
#788D17 #17788D #8D1778
tetradic
#788D17 #178D67 #2C178D #8D173D
square
#788D17 #178D67 #2C178D #8D173D
split-complementary
#788D17 #173D8D #67178D
monochromatic
#1E2406 #4B580E #788D17 #A5C220 #C3E03F

Accessibility & contrast

On white

3.74
#788D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#788D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788D17
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788D17#FFFFFF#000000##000000
##788D171.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#7F8578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #788d17;
/* rgb */ color: rgb(120, 141, 23);
/* oklch */ color: oklch(60.6% 0.136 120.0);
Tailwind
colors: {
  custom: {
    50: '#a3ae61',
    500: '#788d17',
    950: '#000000',
  },
}
SCSS
$custom: #788d17;
$custom-light: #a3ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#788d17",
  "rgb": {
    "r": 120,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 70.678,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.13632,
    "h": 120
  },
  "luminance": 0.23105
}

Semantic roles & 50–950 ramp

primary
#788D17
secondary
#5740C0
accent
#39EF59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788D17

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

Preview Lab → · Contrast checker → · Palette generator →

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