#408C2F#408C2F

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

Color values

HEX#408C2F
RGBrgb(64, 140, 47)
HSLhsl(109, 50%, 37%)
HSVhsv(109, 66%, 55%)
CMYKcmyk(54.3%, 0%, 66.4%, 45.1%)
CIE-LABlab(51.89, -41.78, 41.26)
CIE-LCHlch(51.89, 58.72, 135.36°)
OKLaboklab(57.13% -0.1145 0.0954)
OKLCHoklch(57.13% 0.149 140.2)
XYZxyz(12.0050, 20.0504, 5.9263)
Luminance0.2005 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C2F #7B2F8C
analogous
#6F8C2F #408C2F #2F8C4D
triadic
#408C2F #2F408C #8C2F40
tetradic
#408C2F #2F6F8C #7B2F8C #8C4D2F
square
#408C2F #2F6F8C #7B2F8C #8C4D2F
split-complementary
#408C2F #4D2F8C #8C2F6F
monochromatic
#163010 #2B5E20 #408C2F #55BA3E #7BCD69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408C2F#FFFFFF#000000##000000
##408C2F1.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)
#908023
Deuteranopia (green-blind)
#867937
Tritanopia (blue-blind)
#388879
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408c2f;
/* rgb */ color: rgb(64, 140, 47);
/* oklch */ color: oklch(57.1% 0.149 140.2);
Tailwind
colors: {
  custom: {
    50: '#7cae6c',
    500: '#408c2f',
    950: '#000000',
  },
}
SCSS
$custom: #408c2f;
$custom-light: #7cae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#408c2f",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 109.032,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57133,
    "c": 0.14904,
    "h": 140.2
  },
  "luminance": 0.20051
}

Semantic roles & 50–950 ramp

primary
#408C2F
secondary
#A563B4
accent
#4FD9C0
background
#F7FAF6
surface
#EEF4EC
border
#C9CEC7
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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