#408540#408540

#408540 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.5% C 0.124 H 143.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#408540
RGBrgb(64, 133, 64)
HSLhsl(120, 35%, 39%)
HSVhsv(120, 52%, 52%)
CMYKcmyk(51.9%, 0%, 51.9%, 47.8%)
CIE-LABlab(49.78, -36.76, 30.47)
CIE-LCHlch(49.78, 47.74, 140.35°)
OKLaboklab(55.46% -0.1 0.0735)
OKLCHoklch(55.46% 0.124 143.7)
XYZxyz(11.4267, 18.2343, 7.7669)
Luminance0.1824 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408540 #854085
analogous
#628540 #408540 #408562
triadic
#408540 #404085 #854040
tetradic
#408540 #406285 #854085 #856240
square
#408540 #406285 #854085 #856240
split-complementary
#408540 #624085 #854062
monochromatic
#183218 #2C5C2C #408540 #55AD55 #7EC17E

Accessibility & contrast

On white

4.52
#408540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#408540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408540
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408540#FFFFFF#000000##000000
##4085401.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#7E7445
Tritanopia (blue-blind)
#368275
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #408540;
/* rgb */ color: rgb(64, 133, 64);
/* oklch */ color: oklch(55.5% 0.124 143.7);
Tailwind
colors: {
  custom: {
    50: '#7aa976',
    500: '#408540',
    950: '#000000',
  },
}
SCSS
$custom: #408540;
$custom-light: #7aa976;
$custom-dark: #000000;
JSON
{
  "hex": "#408540",
  "rgb": {
    "r": 64,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 35.025,
    "l": 38.627
  },
  "oklch": {
    "l": 0.55458,
    "c": 0.12407,
    "h": 143.7
  },
  "luminance": 0.18235
}

Semantic roles & 50–950 ramp

primary
#408540
secondary
#AC75AC
accent
#5DCBCB
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A1008
muted
#7C7F7B

Preview Lab

Preview with #408540

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

Preview Lab → · Contrast checker → · Palette generator →

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