#788D1D#788D1D

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

Color values

HEX#788D1D
RGBrgb(120, 141, 29)
HSLhsl(71, 66%, 33%)
HSVhsv(71, 79%, 55%)
CMYKcmyk(14.9%, 0%, 79.4%, 44.7%)
CIE-LABlab(55.21, -22.52, 52.59)
CIE-LCHlch(55.21, 57.21, 113.18°)
OKLaboklab(60.62% -0.067 0.1154)
OKLCHoklch(60.62% 0.133 120.2)
XYZxyz(17.4927, 23.1316, 4.7055)
Luminance0.2313 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788D1D #321D8D
analogous
#8D6A1D #788D1D #408D1D
triadic
#788D1D #1D788D #8D1D78
tetradic
#788D1D #1D8D6A #321D8D #8D1D40
square
#788D1D #1D8D6A #321D8D #8D1D40
split-complementary
#788D1D #1D408D #6A1D8D
monochromatic
#222708 #4D5A13 #788D1D #A3C027 #BFDA4B

Accessibility & contrast

On white

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

On black

5.63
#788D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788D1D
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788D1D#FFFFFF#000000##000000
##788D1D1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #788d1d;
/* rgb */ color: rgb(120, 141, 29);
/* oklch */ color: oklch(60.6% 0.133 120.2);
Tailwind
colors: {
  custom: {
    50: '#a2ae63',
    500: '#788d1d',
    950: '#000000',
  },
}
SCSS
$custom: #788d1d;
$custom-light: #a2ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#788d1d",
  "rgb": {
    "r": 120,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 71.25,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60618,
    "c": 0.13344,
    "h": 120.2
  },
  "luminance": 0.23132
}

Semantic roles & 50–950 ramp

primary
#788D1D
secondary
#5F4ABC
accent
#3FE95F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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