#788D1B#788D1B

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

Color values

HEX#788D1B
RGBrgb(120, 141, 27)
HSLhsl(71, 68%, 33%)
HSVhsv(71, 81%, 55%)
CMYKcmyk(14.9%, 0%, 80.9%, 44.7%)
CIE-LABlab(55.20, -22.61, 53.20)
CIE-LCHlch(55.20, 57.81, 113.02°)
OKLaboklab(60.61% -0.0674 0.1163)
OKLCHoklch(60.61% 0.134 120.1)
XYZxyz(17.4688, 23.1220, 4.5794)
Luminance0.2312 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788D1B #301B8D
analogous
#8D691B #788D1B #3F8D1B
triadic
#788D1B #1B788D #8D1B78
tetradic
#788D1B #1B8D69 #301B8D #8D1B3F
square
#788D1B #1B8D69 #301B8D #8D1B3F
split-complementary
#788D1B #1B3F8D #691B8D
monochromatic
#212607 #4C5A11 #788D1B #A4C025 #C0DC47

Accessibility & contrast

On white

3.73
#788D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##788D1B#FFFFFF#000000##000000
##788D1B1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #788d1b;
/* rgb */ color: rgb(120, 141, 27);
/* oklch */ color: oklch(60.6% 0.134 120.1);
Tailwind
colors: {
  custom: {
    50: '#a2ae63',
    500: '#788d1b',
    950: '#000000',
  },
}
SCSS
$custom: #788d1b;
$custom-light: #a2ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#788d1b",
  "rgb": {
    "r": 120,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 71.053,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60607,
    "c": 0.13446,
    "h": 120.1
  },
  "luminance": 0.23122
}

Semantic roles & 50–950 ramp

primary
#788D1B
secondary
#5C46BD
accent
#3DEB5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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