#408D2E#408D2E

#408D2E is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.4% C 0.151 H 140.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#408D2E
RGBrgb(64, 141, 46)
HSLhsl(109, 51%, 37%)
HSVhsv(109, 67%, 55%)
CMYKcmyk(54.6%, 0%, 67.4%, 44.7%)
CIE-LABlab(52.22, -42.28, 42.06)
CIE-LCHlch(52.22, 59.64, 135.15°)
OKLaboklab(57.4% -0.1159 0.097)
OKLCHoklch(57.4% 0.151 140.1)
XYZxyz(12.1319, 20.3360, 5.8702)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D2E #7B2E8D
analogous
#708D2E #408D2E #2E8D4C
triadic
#408D2E #2E408D #8D2E40
tetradic
#408D2E #2E708D #7B2E8D #8D4C2E
square
#408D2E #2E708D #7B2E8D #8D4C2E
split-complementary
#408D2E #4C2E8D #8D2E70
monochromatic
#163110 #2B5F1F #408D2E #55BB3D #7BCE68

Accessibility & contrast

On white

4.14
#408D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#408D2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D2E
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D2E#FFFFFF#000000##000000
##408D2E1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918122
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#388879
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408d2e;
/* rgb */ color: rgb(64, 141, 46);
/* oklch */ color: oklch(57.4% 0.151 140.1);
Tailwind
colors: {
  custom: {
    50: '#7daf6b',
    500: '#408d2e',
    950: '#000000',
  },
}
SCSS
$custom: #408d2e;
$custom-light: #7daf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#408d2e",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 108.632,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57395,
    "c": 0.15113,
    "h": 140.1
  },
  "luminance": 0.20337
}

Semantic roles & 50–950 ramp

primary
#408D2E
secondary
#A562B5
accent
#4EDAC0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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