#788E1B#788E1B

#788E1B is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.9% C 0.136 H 120.5°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#788E1B
RGBrgb(120, 142, 27)
HSLhsl(71, 68%, 33%)
HSVhsv(71, 81%, 56%)
CMYKcmyk(15.5%, 0%, 81%, 44.3%)
CIE-LABlab(55.50, -23.11, 53.48)
CIE-LCHlch(55.50, 58.26, 113.37°)
OKLaboklab(60.85% -0.0688 0.1169)
OKLCHoklch(60.85% 0.136 120.5)
XYZxyz(17.6169, 23.4183, 4.6288)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E1B #311B8E
analogous
#8E6A1B #788E1B #3F8E1B
triadic
#788E1B #1B788E #8E1B78
tetradic
#788E1B #1B8E6A #311B8E #8E1B3F
square
#788E1B #1B8E6A #311B8E #8E1B3F
split-complementary
#788E1B #1B3F8E #6A1B8E
monochromatic
#212707 #4D5B11 #788E1B #A3C125 #C0DC47

Accessibility & contrast

On white

3.69
#788E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#788E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788E1B
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788E1B#FFFFFF#000000##000000
##788E1B1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#7F8679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #788e1b;
/* rgb */ color: rgb(120, 142, 27);
/* oklch */ color: oklch(60.9% 0.136 120.5);
Tailwind
colors: {
  custom: {
    50: '#a2af63',
    500: '#788e1b',
    950: '#000000',
  },
}
SCSS
$custom: #788e1b;
$custom-light: #a2af63;
$custom-dark: #000000;
JSON
{
  "hex": "#788e1b",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 71.478,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60852,
    "c": 0.13566,
    "h": 120.5
  },
  "luminance": 0.23418
}

Semantic roles & 50–950 ramp

primary
#788E1B
secondary
#5E47BE
accent
#3DEB5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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