#788E1C#788E1C

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

Color values

HEX#788E1C
RGBrgb(120, 142, 28)
HSLhsl(72, 67%, 33%)
HSVhsv(72, 80%, 56%)
CMYKcmyk(15.5%, 0%, 80.3%, 44.3%)
CIE-LABlab(55.51, -23.07, 53.17)
CIE-LCHlch(55.51, 57.96, 113.45°)
OKLaboklab(60.86% -0.0686 0.1165)
OKLCHoklch(60.86% 0.135 120.5)
XYZxyz(17.6287, 23.4230, 4.6908)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E1C #321C8E
analogous
#8E6B1C #788E1C #3F8E1C
triadic
#788E1C #1C788E #8E1C78
tetradic
#788E1C #1C8E6B #321C8E #8E1C3F
square
#788E1C #1C8E6B #321C8E #8E1C3F
split-complementary
#788E1C #1C3F8E #6B1C8E
monochromatic
#222808 #4D5B12 #788E1C #A3C126 #BFDB49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788E1C#FFFFFF#000000##000000
##788E1C1.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: #788e1c;
/* rgb */ color: rgb(120, 142, 28);
/* oklch */ color: oklch(60.9% 0.135 120.5);
Tailwind
colors: {
  custom: {
    50: '#a2af63',
    500: '#788e1c',
    950: '#000000',
  },
}
SCSS
$custom: #788e1c;
$custom-light: #a2af63;
$custom-dark: #000000;
JSON
{
  "hex": "#788e1c",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 71.579,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60857,
    "c": 0.13516,
    "h": 120.5
  },
  "luminance": 0.23423
}

Semantic roles & 50–950 ramp

primary
#788E1C
secondary
#5F49BD
accent
#3EEA5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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