#408C1F#408C1F

#408C1F is a mid, vivid green. Relative luminance 0.199; OKLCH L 57.0% C 0.160 H 138.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#408C1F
RGBrgb(64, 140, 31)
HSLhsl(102, 64%, 34%)
HSVhsv(102, 78%, 55%)
CMYKcmyk(54.3%, 0%, 77.9%, 45.1%)
CIE-LABlab(51.77, -43.13, 47.57)
CIE-LCHlch(51.77, 64.21, 132.20°)
OKLaboklab(57% -0.1192 0.1064)
OKLCHoklch(57% 0.16 138.2)
XYZxyz(11.7393, 19.9442, 4.5271)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C1F #6B1F8C
analogous
#768C1F #408C1F #1F8C34
triadic
#408C1F #1F408C #8C1F40
tetradic
#408C1F #1F768C #6B1F8C #8C341F
square
#408C1F #1F768C #6B1F8C #8C341F
split-complementary
#408C1F #341F8C #8C1F76
monochromatic
#122809 #295A14 #408C1F #57BE2A #77D84E

Accessibility & contrast

On white

4.21
#408C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#408C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C1F
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C1F#FFFFFF#000000##000000
##408C1F1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F05
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c1f;
/* rgb */ color: rgb(64, 140, 31);
/* oklch */ color: oklch(57.0% 0.160 138.2);
Tailwind
colors: {
  custom: {
    50: '#7dae63',
    500: '#408c1f',
    950: '#000000',
  },
}
SCSS
$custom: #408c1f;
$custom-light: #7dae63;
$custom-dark: #000000;
JSON
{
  "hex": "#408c1f",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 101.835,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56996,
    "c": 0.15979,
    "h": 138.2
  },
  "luminance": 0.19945
}

Semantic roles & 50–950 ramp

primary
#408C1F
secondary
#994CBB
accent
#41E7B5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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