#408A1F#408A1F

#408A1F is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.5% C 0.157 H 138.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#408A1F
RGBrgb(64, 138, 31)
HSLhsl(101, 63%, 33%)
HSVhsv(101, 78%, 54%)
CMYKcmyk(53.6%, 0%, 77.5%, 45.9%)
CIE-LABlab(51.11, -42.33, 46.92)
CIE-LCHlch(51.11, 63.20, 132.06°)
OKLaboklab(56.45% -0.1171 0.1051)
OKLCHoklch(56.45% 0.157 138.1)
XYZxyz(11.4498, 19.3650, 4.4305)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A1F #691F8A
analogous
#758A1F #408A1F #1F8A33
triadic
#408A1F #1F408A #8A1F40
tetradic
#408A1F #1F758A #691F8A #8A331F
square
#408A1F #1F758A #691F8A #8A331F
split-complementary
#408A1F #331F8A #8A1F75
monochromatic
#122609 #295814 #408A1F #57BC2A #77D74C

Accessibility & contrast

On white

4.31
#408A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#408A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408A1F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408A1F#FFFFFF#000000##000000
##408A1F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E07
Deuteranopia (green-blind)
#85772A
Tritanopia (blue-blind)
#3A8576
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a1f;
/* rgb */ color: rgb(64, 138, 31);
/* oklch */ color: oklch(56.5% 0.157 138.1);
Tailwind
colors: {
  custom: {
    50: '#7dad63',
    500: '#408a1f',
    950: '#000000',
  },
}
SCSS
$custom: #408a1f;
$custom-light: #7dad63;
$custom-dark: #000000;
JSON
{
  "hex": "#408a1f",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 101.495,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5645,
    "c": 0.1573,
    "h": 138.1
  },
  "luminance": 0.19366
}

Semantic roles & 50–950 ramp

primary
#408A1F
secondary
#984BBA
accent
#41E6B3
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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