#789840#789840

#789840 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.122 H 126.4°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#789840
RGBrgb(120, 152, 64)
HSLhsl(82, 41%, 42%)
HSVhsv(82, 58%, 60%)
CMYKcmyk(21.1%, 0%, 57.9%, 40.4%)
CIE-LABlab(58.81, -25.55, 41.93)
CIE-LCHlch(58.81, 49.10, 121.35°)
OKLaboklab(63.61% -0.0722 0.098)
OKLCHoklch(63.61% 0.122 126.4)
XYZxyz(19.8994, 26.8194, 8.9778)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#789840 #604098
analogous
#988C40 #789840 #4C9840
triadic
#789840 #407898 #984078
tetradic
#789840 #40988C #604098 #98404C
square
#789840 #40988C #604098 #98404C
split-complementary
#789840 #404C98 #8C4098
monochromatic
#34421C #566D2E #789840 #98BA5B #B3CC86

Accessibility & contrast

On white

3.30
#789840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#789840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #789840
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##789840#FFFFFF#000000##000000
##7898401.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8F37
Deuteranopia (green-blind)
#9B8D46
Tritanopia (blue-blind)
#7C9185
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #789840;
/* rgb */ color: rgb(120, 152, 64);
/* oklch */ color: oklch(63.6% 0.122 126.4);
Tailwind
colors: {
  custom: {
    50: '#a1b678',
    500: '#789840',
    950: '#000000',
  },
}
SCSS
$custom: #789840;
$custom-light: #a1b678;
$custom-dark: #000000;
JSON
{
  "hex": "#789840",
  "rgb": {
    "r": 120,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 81.818,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.63611,
    "c": 0.12173,
    "h": 126.4
  },
  "luminance": 0.2682
}

Semantic roles & 50–950 ramp

primary
#789840
secondary
#927DB7
accent
#57D183
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#0F1109
muted
#7F807B

Preview Lab

Preview with #789840

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

Preview Lab → · Contrast checker → · Palette generator →

#789840 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva