#408B1F#408B1F

#408B1F is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.7% C 0.159 H 138.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#408B1F
RGBrgb(64, 139, 31)
HSLhsl(102, 64%, 33%)
HSVhsv(102, 78%, 55%)
CMYKcmyk(54%, 0%, 77.7%, 45.5%)
CIE-LABlab(51.44, -42.73, 47.24)
CIE-LCHlch(51.44, 63.70, 132.13°)
OKLaboklab(56.72% -0.1181 0.1058)
OKLCHoklch(56.72% 0.159 138.2)
XYZxyz(11.5939, 19.6533, 4.4786)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B1F #6A1F8B
analogous
#768B1F #408B1F #1F8B34
triadic
#408B1F #1F408B #8B1F40
tetradic
#408B1F #1F768B #6A1F8B #8B341F
square
#408B1F #1F768B #6A1F8B #8B341F
split-complementary
#408B1F #341F8B #8B1F76
monochromatic
#122709 #295914 #408B1F #57BD2A #77D74D

Accessibility & contrast

On white

4.26
#408B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#408B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B1F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B1F#FFFFFF#000000##000000
##408B1F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#3A8677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408b1f;
/* rgb */ color: rgb(64, 139, 31);
/* oklch */ color: oklch(56.7% 0.159 138.2);
Tailwind
colors: {
  custom: {
    50: '#7dad63',
    500: '#408b1f',
    950: '#000000',
  },
}
SCSS
$custom: #408b1f;
$custom-light: #7dad63;
$custom-dark: #000000;
JSON
{
  "hex": "#408b1f",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 101.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56723,
    "c": 0.15856,
    "h": 138.2
  },
  "luminance": 0.19654
}

Semantic roles & 50–950 ramp

primary
#408B1F
secondary
#984CBA
accent
#41E7B4
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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