#408C2D#408C2D

#408C2D is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.1% C 0.151 H 139.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#408C2D
RGBrgb(64, 140, 45)
HSLhsl(108, 51%, 36%)
HSVhsv(108, 68%, 55%)
CMYKcmyk(54.3%, 0%, 67.9%, 45.1%)
CIE-LABlab(51.88, -41.98, 42.13)
CIE-LCHlch(51.88, 59.47, 134.90°)
OKLaboklab(57.11% -0.1152 0.097)
OKLCHoklch(57.11% 0.151 139.9)
XYZxyz(11.9656, 20.0347, 5.7187)
Luminance0.2004 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C2D #792D8C
analogous
#708C2D #408C2D #2D8C4A
triadic
#408C2D #2D408C #8C2D40
tetradic
#408C2D #2D708C #792D8C #8C4A2D
square
#408C2D #2D708C #792D8C #8C4A2D
split-complementary
#408C2D #4A2D8C #8C2D70
monochromatic
#162F0F #2B5E1E #408C2D #55BA3C #7ACE66

Accessibility & contrast

On white

4.19
#408C2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#408C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C2D
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C2D#FFFFFF#000000##000000
##408C2D1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#908020
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#388779
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408c2d;
/* rgb */ color: rgb(64, 140, 45);
/* oklch */ color: oklch(57.1% 0.151 139.9);
Tailwind
colors: {
  custom: {
    50: '#7dae6b',
    500: '#408c2d',
    950: '#000000',
  },
}
SCSS
$custom: #408c2d;
$custom-light: #7dae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#408c2d",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 108,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57113,
    "c": 0.15057,
    "h": 139.9
  },
  "luminance": 0.20036
}

Semantic roles & 50–950 ramp

primary
#408C2D
secondary
#A460B4
accent
#4DDBBE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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