#788B1B#788B1B

#788B1B is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 60.1% C 0.132 H 119.3°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#788B1B
RGBrgb(120, 139, 27)
HSLhsl(70, 67%, 33%)
HSVhsv(70, 81%, 55%)
CMYKcmyk(13.7%, 0%, 80.6%, 45.5%)
CIE-LABlab(54.59, -21.59, 52.66)
CIE-LCHlch(54.59, 56.91, 112.30°)
OKLaboklab(60.12% -0.0647 0.1152)
OKLCHoklch(60.12% 0.132 119.3)
XYZxyz(17.1766, 22.5375, 4.4820)
Luminance0.2254 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788B1B #2E1B8B
analogous
#8B661B #788B1B #408B1B
triadic
#788B1B #1B788B #8B1B78
tetradic
#788B1B #1B8B66 #2E1B8B #8B1B40
square
#788B1B #1B8B66 #2E1B8B #8B1B40
split-complementary
#788B1B #1B408B #661B8B
monochromatic
#202507 #4C5811 #788B1B #A4BE25 #C2DB45

Accessibility & contrast

On white

3.81
#788B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#788B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788B1B
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788B1B#FFFFFF#000000##000000
##788B1B1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948300
Deuteranopia (green-blind)
#928326
Tritanopia (blue-blind)
#7F8376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #788b1b;
/* rgb */ color: rgb(120, 139, 27);
/* oklch */ color: oklch(60.1% 0.132 119.3);
Tailwind
colors: {
  custom: {
    50: '#a2ac62',
    500: '#788b1b',
    950: '#000000',
  },
}
SCSS
$custom: #788b1b;
$custom-light: #a2ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#788b1b",
  "rgb": {
    "r": 120,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 70.179,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6012,
    "c": 0.13208,
    "h": 119.3
  },
  "luminance": 0.22537
}

Semantic roles & 50–950 ramp

primary
#788B1B
secondary
#5A45BC
accent
#3DEA5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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