#408D2D#408D2D

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

Color values

HEX#408D2D
RGBrgb(64, 141, 45)
HSLhsl(108, 52%, 36%)
HSVhsv(108, 68%, 55%)
CMYKcmyk(54.6%, 0%, 68.1%, 44.7%)
CIE-LABlab(52.21, -42.38, 42.49)
CIE-LCHlch(52.21, 60.01, 134.93°)
OKLaboklab(57.39% -0.1163 0.0977)
OKLCHoklch(57.39% 0.152 139.9)
XYZxyz(12.1124, 20.3282, 5.7676)
Luminance0.2033 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D2D #7A2D8D
analogous
#708D2D #408D2D #2D8D4A
triadic
#408D2D #2D408D #8D2D40
tetradic
#408D2D #2D708D #7A2D8D #8D4A2D
square
#408D2D #2D708D #7A2D8D #8D4A2D
split-complementary
#408D2D #4A2D8D #8D2D70
monochromatic
#16300F #2B5F1E #408D2D #55BB3C #7BCE66

Accessibility & contrast

On white

4.15
#408D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##408D2D#FFFFFF#000000##000000
##408D2D1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408d2d;
/* rgb */ color: rgb(64, 141, 45);
/* oklch */ color: oklch(57.4% 0.152 139.9);
Tailwind
colors: {
  custom: {
    50: '#7daf6b',
    500: '#408d2d',
    950: '#000000',
  },
}
SCSS
$custom: #408d2d;
$custom-light: #7daf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#408d2d",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 108.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.57385,
    "c": 0.15188,
    "h": 139.9
  },
  "luminance": 0.20329
}

Semantic roles & 50–950 ramp

primary
#408D2D
secondary
#A461B5
accent
#4DDBBF
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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