#789B40#789B40

#789B40 is a light, vivid yellow-green. Relative luminance 0.278; OKLCH L 64.3% C 0.126 H 127.3°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#789B40
RGBrgb(120, 155, 64)
HSLhsl(83, 42%, 43%)
HSVhsv(83, 59%, 61%)
CMYKcmyk(22.6%, 0%, 58.7%, 39.2%)
CIE-LABlab(59.71, -27.02, 42.96)
CIE-LCHlch(59.71, 50.75, 122.17°)
OKLaboklab(64.34% -0.0762 0.1003)
OKLCHoklch(64.34% 0.126 127.3)
XYZxyz(20.3924, 27.8056, 9.1421)
Luminance0.2781 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#789B40 #63409B
analogous
#9B9040 #789B40 #4A9B40
triadic
#789B40 #40789B #9B4078
tetradic
#789B40 #409B90 #63409B #9B404A
square
#789B40 #409B90 #63409B #9B404A
split-complementary
#789B40 #404A9B #90409B
monochromatic
#35441C #56702E #789B40 #97BC5C #B3CE88

Accessibility & contrast

On white

3.20
#789B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#789B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #789B40
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##789B40#FFFFFF#000000##000000
##789B401.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29136
Deuteranopia (green-blind)
#9D8F46
Tritanopia (blue-blind)
#7C9487
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #789b40;
/* rgb */ color: rgb(120, 155, 64);
/* oklch */ color: oklch(64.3% 0.126 127.3);
Tailwind
colors: {
  custom: {
    50: '#a1b878',
    500: '#789b40',
    950: '#000000',
  },
}
SCSS
$custom: #789b40;
$custom-light: #a1b878;
$custom-dark: #000000;
JSON
{
  "hex": "#789b40",
  "rgb": {
    "r": 120,
    "g": 155,
    "b": 64
  },
  "hsl": {
    "h": 83.077,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.64342,
    "c": 0.12595,
    "h": 127.3
  },
  "luminance": 0.27806
}

Semantic roles & 50–950 ramp

primary
#789B40
secondary
#957EB8
accent
#56D186
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#0F1109
muted
#7F807B

Preview Lab

Preview with #789B40

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

Preview Lab → · Contrast checker → · Palette generator →

#789B40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva