#788E17#788E17

#788E17 is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.8% C 0.138 H 120.4°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#788E17
RGBrgb(120, 142, 23)
HSLhsl(71, 72%, 32%)
HSVhsv(71, 84%, 56%)
CMYKcmyk(15.5%, 0%, 83.8%, 44.3%)
CIE-LABlab(55.48, -23.27, 54.61)
CIE-LCHlch(55.48, 59.36, 113.08°)
OKLaboklab(60.83% -0.0695 0.1186)
OKLCHoklch(60.83% 0.138 120.4)
XYZxyz(17.5737, 23.4010, 4.4015)
Luminance0.2340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E17 #2D178E
analogous
#8E6817 #788E17 #3D8E17
triadic
#788E17 #17788E #8E1778
tetradic
#788E17 #178E68 #2D178E #8E173D
square
#788E17 #178E68 #2D178E #8E173D
split-complementary
#788E17 #173D8E #68178E
monochromatic
#1F2506 #4B590E #788E17 #A5C320 #C2E03F

Accessibility & contrast

On white

3.70
#788E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#788E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788E17
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788E17#FFFFFF#000000##000000
##788E171.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#7F8679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #788e17;
/* rgb */ color: rgb(120, 142, 23);
/* oklch */ color: oklch(60.8% 0.138 120.4);
Tailwind
colors: {
  custom: {
    50: '#a3af61',
    500: '#788e17',
    950: '#000000',
  },
}
SCSS
$custom: #788e17;
$custom-light: #a3af61;
$custom-dark: #000000;
JSON
{
  "hex": "#788e17",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 71.092,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60832,
    "c": 0.1375,
    "h": 120.4
  },
  "luminance": 0.23401
}

Semantic roles & 50–950 ramp

primary
#788E17
secondary
#5840C0
accent
#39EF5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788E17

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

Preview Lab → · Contrast checker → · Palette generator →

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