#408F1D#408F1D

#408F1D is a mid, vivid green. Relative luminance 0.208; OKLCH L 57.8% C 0.165 H 138.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#408F1D
RGBrgb(64, 143, 29)
HSLhsl(102, 66%, 34%)
HSVhsv(102, 80%, 56%)
CMYKcmyk(55.2%, 0%, 79.7%, 43.9%)
CIE-LABlab(52.75, -44.43, 49.19)
CIE-LCHlch(52.75, 66.28, 132.09°)
OKLaboklab(57.8% -0.1228 0.1095)
OKLCHoklch(57.8% 0.165 138.3)
XYZxyz(12.1581, 20.8226, 4.5406)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F1D #6C1D8F
analogous
#798F1D #408F1D #1D8F33
triadic
#408F1D #1D408F #8F1D40
tetradic
#408F1D #1D798F #6C1D8F #8F331D
square
#408F1D #1D798F #6C1D8F #8F331D
split-complementary
#408F1D #331D8F #8F1D79
monochromatic
#122908 #295C13 #408F1D #57C227 #78DB4C

Accessibility & contrast

On white

4.07
#408F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#408F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F1D
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F1D#FFFFFF#000000##000000
##408F1D1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8A7B2A
Tritanopia (blue-blind)
#398A7A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f1d;
/* rgb */ color: rgb(64, 143, 29);
/* oklch */ color: oklch(57.8% 0.165 138.3);
Tailwind
colors: {
  custom: {
    50: '#7eb063',
    500: '#408f1d',
    950: '#000000',
  },
}
SCSS
$custom: #408f1d;
$custom-light: #7eb063;
$custom-dark: #000000;
JSON
{
  "hex": "#408f1d",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 101.579,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57801,
    "c": 0.16455,
    "h": 138.3
  },
  "luminance": 0.20824
}

Semantic roles & 50–950 ramp

primary
#408F1D
secondary
#9A4BBD
accent
#3FE9B5
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #408F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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