#408F1F#408F1F

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

Color values

HEX#408F1F
RGBrgb(64, 143, 31)
HSLhsl(102, 64%, 34%)
HSVhsv(102, 78%, 56%)
CMYKcmyk(55.2%, 0%, 78.3%, 43.9%)
CIE-LABlab(52.77, -44.30, 48.53)
CIE-LCHlch(52.77, 65.71, 132.39°)
OKLaboklab(57.81% -0.1223 0.1084)
OKLCHoklch(57.81% 0.163 138.4)
XYZxyz(12.1837, 20.8329, 4.6752)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F1F #6E1F8F
analogous
#788F1F #408F1F #1F8F36
triadic
#408F1F #1F408F #8F1F40
tetradic
#408F1F #1F788F #6E1F8F #8F361F
square
#408F1F #1F788F #6E1F8F #8F361F
split-complementary
#408F1F #361F8F #8F1F78
monochromatic
#132A09 #295D14 #408F1F #57C12A #78D94F

Accessibility & contrast

On white

4.06
#408F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#408F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F1F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F1F#FFFFFF#000000##000000
##408F1F1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948203
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#398A7A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f1f;
/* rgb */ color: rgb(64, 143, 31);
/* oklch */ color: oklch(57.8% 0.163 138.4);
Tailwind
colors: {
  custom: {
    50: '#7eb064',
    500: '#408f1f',
    950: '#000000',
  },
}
SCSS
$custom: #408f1f;
$custom-light: #7eb064;
$custom-dark: #000000;
JSON
{
  "hex": "#408f1f",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 102.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57814,
    "c": 0.16349,
    "h": 138.4
  },
  "luminance": 0.20834
}

Semantic roles & 50–950 ramp

primary
#408F1F
secondary
#9B4EBC
accent
#40E7B6
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #408F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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