#408B40#408B40

#408B40 is a mid, vivid green. Relative luminance 0.199; OKLCH L 57.1% C 0.133 H 143.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#408B40
RGBrgb(64, 139, 64)
HSLhsl(120, 37%, 40%)
HSVhsv(120, 54%, 55%)
CMYKcmyk(54%, 0%, 54%, 45.5%)
CIE-LABlab(51.75, -39.32, 32.88)
CIE-LCHlch(51.75, 51.25, 140.10°)
OKLaboklab(57.08% -0.1069 0.0789)
OKLCHoklch(57.08% 0.133 143.6)
XYZxyz(12.2717, 19.9244, 8.0486)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B40 #8B408B
analogous
#668B40 #408B40 #408B66
triadic
#408B40 #40408B #8B4040
tetradic
#408B40 #40668B #8B408B #8B6640
square
#408B40 #40668B #8B408B #8B6640
split-complementary
#408B40 #66408B #8B4066
monochromatic
#193719 #2D612D #408B40 #57B257 #81C581

Accessibility & contrast

On white

4.21
#408B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#408B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B40
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B40#FFFFFF#000000##000000
##408B401.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F39
Deuteranopia (green-blind)
#847945
Tritanopia (blue-blind)
#35877A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408b40;
/* rgb */ color: rgb(64, 139, 64);
/* oklch */ color: oklch(57.1% 0.133 143.6);
Tailwind
colors: {
  custom: {
    50: '#7bad77',
    500: '#408b40',
    950: '#000000',
  },
}
SCSS
$custom: #408b40;
$custom-light: #7bad77;
$custom-dark: #000000;
JSON
{
  "hex": "#408b40",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.57076,
    "c": 0.13283,
    "h": 143.6
  },
  "luminance": 0.19925
}

Semantic roles & 50–950 ramp

primary
#408B40
secondary
#AF78AF
accent
#5BCDCD
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A1009
muted
#7C7F7B

Preview Lab

Preview with #408B40

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

Preview Lab → · Contrast checker → · Palette generator →

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