#788F2E#788F2E

#788F2E is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.125 H 121.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#788F2E
RGBrgb(120, 143, 46)
HSLhsl(74, 51%, 37%)
HSVhsv(74, 68%, 56%)
CMYKcmyk(16.1%, 0%, 67.8%, 43.9%)
CIE-LABlab(55.92, -22.55, 46.92)
CIE-LCHlch(55.92, 52.06, 115.67°)
OKLaboklab(61.23% -0.0656 0.1063)
OKLCHoklch(61.23% 0.125 121.7)
XYZxyz(18.0616, 23.8352, 6.2334)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788F2E #452E8F
analogous
#8F762E #788F2E #478F2E
triadic
#788F2E #2E788F #8F2E78
tetradic
#788F2E #2E8F76 #452E8F #8F2E47
square
#788F2E #2E8F76 #452E8F #8F2E47
split-complementary
#788F2E #2E478F #762E8F
monochromatic
#2A3210 #51611F #788F2E #9FBD3D #B6CF69

Accessibility & contrast

On white

3.64
#788F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#788F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788F2E
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788F2E#FFFFFF#000000##000000
##788F2E1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988620
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#7E887B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #788f2e;
/* rgb */ color: rgb(120, 143, 46);
/* oklch */ color: oklch(61.2% 0.125 121.7);
Tailwind
colors: {
  custom: {
    50: '#a2af6c',
    500: '#788f2e',
    950: '#000000',
  },
}
SCSS
$custom: #788f2e;
$custom-light: #a2af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#788f2e",
  "rgb": {
    "r": 120,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 74.227,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6123,
    "c": 0.12493,
    "h": 121.7
  },
  "luminance": 0.23835
}

Semantic roles & 50–950 ramp

primary
#788F2E
secondary
#7763B6
accent
#4DDB6F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #788F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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