#407940#407940

#407940 is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.2% C 0.106 H 143.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#407940
RGBrgb(64, 121, 64)
HSLhsl(120, 31%, 36%)
HSVhsv(120, 47%, 47%)
CMYKcmyk(47.1%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.82, -31.39, 25.52)
CIE-LCHlch(45.82, 40.45, 140.89°)
OKLaboklab(52.22% -0.0854 0.0623)
OKLCHoklch(52.22% 0.106 143.9)
XYZxyz(9.8767, 15.1342, 7.2503)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407940 #794079
analogous
#5D7940 #407940 #40795D
triadic
#407940 #404079 #794040
tetradic
#407940 #405D79 #794079 #795D40
square
#407940 #405D79 #794079 #795D40
split-complementary
#407940 #5D4079 #79405D
monochromatic
#162916 #2B512B #407940 #55A155 #7AB97A

Accessibility & contrast

On white

5.21
#407940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#407940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407940
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407940#FFFFFF#000000##FFFFFF
##4079401.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703C
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#39766B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407940;
/* rgb */ color: rgb(64, 121, 64);
/* oklch */ color: oklch(52.2% 0.106 143.9);
Tailwind
colors: {
  custom: {
    50: '#79a076',
    500: '#407940',
    950: '#000000',
  },
}
SCSS
$custom: #407940;
$custom-light: #79a076;
$custom-dark: #000000;
JSON
{
  "hex": "#407940",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.52215,
    "c": 0.10575,
    "h": 143.9
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#407940
secondary
#A471A4
accent
#61C7C7
background
#F7F9F7
surface
#EEF2ED
border
#C9CCC8
text
#090F08
muted
#7B7E7B

Preview Lab

Preview with #407940

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

Preview Lab → · Contrast checker → · Palette generator →

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