#788C18#788C18

#788C18 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#788C18
RGBrgb(120, 140, 24)
HSLhsl(70, 71%, 32%)
HSVhsv(70, 83%, 55%)
CMYKcmyk(14.3%, 0%, 82.9%, 45.1%)
CIE-LABlab(54.88, -22.22, 53.80)
CIE-LCHlch(54.88, 58.21, 112.44°)
OKLaboklab(60.35% -0.0666 0.1171)
OKLCHoklch(60.35% 0.135 119.6)
XYZxyz(17.2891, 22.8153, 4.3570)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788C18 #2C188C
analogous
#8C6618 #788C18 #3E8C18
triadic
#788C18 #18788C #8C1878
tetradic
#788C18 #188C66 #2C188C #8C183E
square
#788C18 #188C66 #2C188C #8C183E
split-complementary
#788C18 #183E8C #66188C
monochromatic
#1E2406 #4B580F #788C18 #A5C021 #C3DE40

Accessibility & contrast

On white

3.77
#788C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##788C18#FFFFFF#000000##000000
##788C181.003.775.565.56
#FFFFFF3.771.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: #788c18;
/* rgb */ color: rgb(120, 140, 24);
/* oklch */ color: oklch(60.3% 0.135 119.6);
Tailwind
colors: {
  custom: {
    50: '#a2ad61',
    500: '#788c18',
    950: '#000000',
  },
}
SCSS
$custom: #788c18;
$custom-light: #a2ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#788c18",
  "rgb": {
    "r": 120,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 70.345,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60348,
    "c": 0.1347,
    "h": 119.6
  },
  "luminance": 0.22815
}

Semantic roles & 50–950 ramp

primary
#788C18
secondary
#5741BF
accent
#3AED59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788C18

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

Preview Lab → · Contrast checker → · Palette generator →

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