#408D2F#408D2F

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

Color values

HEX#408D2F
RGBrgb(64, 141, 47)
HSLhsl(109, 50%, 37%)
HSVhsv(109, 67%, 55%)
CMYKcmyk(54.6%, 0%, 66.7%, 44.7%)
CIE-LABlab(52.22, -42.18, 41.63)
CIE-LCHlch(52.22, 59.26, 135.38°)
OKLaboklab(57.4% -0.1156 0.0962)
OKLCHoklch(57.4% 0.15 140.2)
XYZxyz(12.1518, 20.3440, 5.9752)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D2F #7C2F8D
analogous
#6F8D2F #408D2F #2F8D4D
triadic
#408D2F #2F408D #8D2F40
tetradic
#408D2F #2F6F8D #7C2F8D #8D4D2F
square
#408D2F #2F6F8D #7C2F8D #8D4D2F
split-complementary
#408D2F #4D2F8D #8D2F6F
monochromatic
#163110 #2B5F20 #408D2F #55BB3E #7BCD69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408D2F#FFFFFF#000000##000000
##408D2F1.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)
#918123
Deuteranopia (green-blind)
#877A37
Tritanopia (blue-blind)
#37887A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408d2f;
/* rgb */ color: rgb(64, 141, 47);
/* oklch */ color: oklch(57.4% 0.150 140.2);
Tailwind
colors: {
  custom: {
    50: '#7daf6c',
    500: '#408d2f',
    950: '#000000',
  },
}
SCSS
$custom: #408d2f;
$custom-light: #7daf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#408d2f",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 109.149,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.57405,
    "c": 0.15036,
    "h": 140.2
  },
  "luminance": 0.20345
}

Semantic roles & 50–950 ramp

primary
#408D2F
secondary
#A664B4
accent
#4EDAC0
background
#F7FAF6
surface
#EEF4EC
border
#C9CEC7
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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