#788B1D#788B1D

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

Color values

HEX#788B1D
RGBrgb(120, 139, 29)
HSLhsl(70, 65%, 33%)
HSVhsv(70, 79%, 55%)
CMYKcmyk(13.7%, 0%, 79.1%, 45.5%)
CIE-LABlab(54.60, -21.51, 52.03)
CIE-LCHlch(54.60, 56.30, 112.46°)
OKLaboklab(60.13% -0.0642 0.1142)
OKLCHoklch(60.13% 0.131 119.4)
XYZxyz(17.2005, 22.5471, 4.6081)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788B1D #301D8B
analogous
#8B671D #788B1D #418B1D
triadic
#788B1D #1D788B #8B1D78
tetradic
#788B1D #1D8B67 #301D8B #8B1D41
square
#788B1D #1D8B67 #301D8B #8B1D41
split-complementary
#788B1D #1D418B #671D8B
monochromatic
#212608 #4C5812 #788B1D #A4BE28 #C0D949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788B1D#FFFFFF#000000##000000
##788B1D1.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)
#928328
Tritanopia (blue-blind)
#7F8377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #788b1d;
/* rgb */ color: rgb(120, 139, 29);
/* oklch */ color: oklch(60.1% 0.131 119.4);
Tailwind
colors: {
  custom: {
    50: '#a2ac63',
    500: '#788b1d',
    950: '#000000',
  },
}
SCSS
$custom: #788b1d;
$custom-light: #a2ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#788b1d",
  "rgb": {
    "r": 120,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 70.364,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60131,
    "c": 0.13103,
    "h": 119.4
  },
  "luminance": 0.22547
}

Semantic roles & 50–950 ramp

primary
#788B1D
secondary
#5C49BB
accent
#3FE85D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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