#788D18#788D18

#788D18 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#788D18
RGBrgb(120, 141, 24)
HSLhsl(71, 71%, 32%)
HSVhsv(71, 83%, 55%)
CMYKcmyk(14.9%, 0%, 83%, 44.7%)
CIE-LABlab(55.18, -22.73, 54.07)
CIE-LCHlch(55.18, 58.65, 112.80°)
OKLaboklab(60.59% -0.068 0.1177)
OKLCHoklch(60.59% 0.136 120)
XYZxyz(17.4358, 23.1088, 4.4059)
Luminance0.2311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788D18 #2D188D
analogous
#8D6718 #788D18 #3E8D18
triadic
#788D18 #18788D #8D1878
tetradic
#788D18 #188D67 #2D188D #8D183E
square
#788D18 #188D67 #2D188D #8D183E
split-complementary
#788D18 #183E8D #67188D
monochromatic
#1F2406 #4B590F #788D18 #A5C121 #C2DF41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788D18#FFFFFF#000000##000000
##788D181.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: #788d18;
/* rgb */ color: rgb(120, 141, 24);
/* oklch */ color: oklch(60.6% 0.136 120.0);
Tailwind
colors: {
  custom: {
    50: '#a2ae61',
    500: '#788d18',
    950: '#000000',
  },
}
SCSS
$custom: #788d18;
$custom-light: #a2ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#788d18",
  "rgb": {
    "r": 120,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 70.769,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60592,
    "c": 0.13588,
    "h": 120
  },
  "luminance": 0.23109
}

Semantic roles & 50–950 ramp

primary
#788D18
secondary
#5842BF
accent
#3AEE5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788D18

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

Preview Lab → · Contrast checker → · Palette generator →

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