#7A8A40#7A8A40

#7A8A40 is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.4% C 0.101 H 119.6°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7A8A40
RGBrgb(122, 138, 64)
HSLhsl(73, 37%, 40%)
HSVhsv(73, 54%, 54%)
CMYKcmyk(11.6%, 0%, 53.6%, 45.9%)
CIE-LABlab(54.75, -17.60, 37.25)
CIE-LCHlch(54.75, 41.20, 115.28°)
OKLaboklab(60.38% -0.05 0.0879)
OKLCHoklch(60.38% 0.101 119.6)
XYZxyz(18.0401, 22.6848, 8.2777)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A40 #50408A
analogous
#8A7540 #7A8A40 #558A40
triadic
#7A8A40 #407A8A #8A407A
tetradic
#7A8A40 #408A75 #50408A #8A4055
square
#7A8A40 #408A75 #50408A #8A4055
split-complementary
#7A8A40 #40558A #75408A
monochromatic
#303619 #55602D #7A8A40 #9DB156 #B5C480

Accessibility & contrast

On white

3.79
#7A8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7A8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A40
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A40#FFFFFF#000000##000000
##7A8A401.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#908344
Tritanopia (blue-blind)
#808479
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7a8a40;
/* rgb */ color: rgb(122, 138, 64);
/* oklch */ color: oklch(60.4% 0.101 119.6);
Tailwind
colors: {
  custom: {
    50: '#a2ac77',
    500: '#7a8a40',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a40;
$custom-light: #a2ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a40",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 72.973,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60378,
    "c": 0.10115,
    "h": 119.6
  },
  "luminance": 0.22685
}

Semantic roles & 50–950 ramp

primary
#7A8A40
secondary
#8377AF
accent
#5BCD74
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7A8A40

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

Preview Lab → · Contrast checker → · Palette generator →

#7A8A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva