#408C1D#408C1D

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

Color values

HEX#408C1D
RGBrgb(64, 140, 29)
HSLhsl(101, 66%, 33%)
HSVhsv(101, 79%, 55%)
CMYKcmyk(54.3%, 0%, 79.3%, 45.1%)
CIE-LABlab(51.76, -43.26, 48.24)
CIE-LCHlch(51.76, 64.79, 131.88°)
OKLaboklab(56.98% -0.1197 0.1075)
OKLCHoklch(56.98% 0.161 138.1)
XYZxyz(11.7138, 19.9340, 4.3925)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C1D #691D8C
analogous
#778C1D #408C1D #1D8C31
triadic
#408C1D #1D408C #8C1D40
tetradic
#408C1D #1D778C #691D8C #8C311D
square
#408C1D #1D778C #691D8C #8C311D
split-complementary
#408C1D #311D8C #8C1D77
monochromatic
#122708 #295912 #408C1D #57BF28 #77D94A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408C1D#FFFFFF#000000##000000
##408C1D1.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)
#917F00
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c1d;
/* rgb */ color: rgb(64, 140, 29);
/* oklch */ color: oklch(57.0% 0.161 138.1);
Tailwind
colors: {
  custom: {
    50: '#7dae62',
    500: '#408c1d',
    950: '#000000',
  },
}
SCSS
$custom: #408c1d;
$custom-light: #7dae62;
$custom-dark: #000000;
JSON
{
  "hex": "#408c1d",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 101.081,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56983,
    "c": 0.16088,
    "h": 138.1
  },
  "luminance": 0.19935
}

Semantic roles & 50–950 ramp

primary
#408C1D
secondary
#9849BC
accent
#3FE9B3
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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