#408D1F#408D1F

#408D1F is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.3% C 0.161 H 138.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#408D1F
RGBrgb(64, 141, 31)
HSLhsl(102, 64%, 34%)
HSVhsv(102, 78%, 55%)
CMYKcmyk(54.6%, 0%, 78%, 44.7%)
CIE-LABlab(52.10, -43.52, 47.89)
CIE-LCHlch(52.10, 64.71, 132.26°)
OKLaboklab(57.27% -0.1202 0.1071)
OKLCHoklch(57.27% 0.161 138.3)
XYZxyz(11.8861, 20.2377, 4.5760)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D1F #6C1F8D
analogous
#778D1F #408D1F #1F8D35
triadic
#408D1F #1F408D #8D1F40
tetradic
#408D1F #1F778D #6C1F8D #8D351F
square
#408D1F #1F778D #6C1F8D #8D351F
split-complementary
#408D1F #351F8D #8D1F77
monochromatic
#122909 #295B14 #408D1F #57BF2A #78D84E

Accessibility & contrast

On white

4.16
#408D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#408D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D1F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D1F#FFFFFF#000000##000000
##408D1F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928005
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#398878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d1f;
/* rgb */ color: rgb(64, 141, 31);
/* oklch */ color: oklch(57.3% 0.161 138.3);
Tailwind
colors: {
  custom: {
    50: '#7daf63',
    500: '#408d1f',
    950: '#000000',
  },
}
SCSS
$custom: #408d1f;
$custom-light: #7daf63;
$custom-dark: #000000;
JSON
{
  "hex": "#408d1f",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 102,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57269,
    "c": 0.16103,
    "h": 138.3
  },
  "luminance": 0.20239
}

Semantic roles & 50–950 ramp

primary
#408D1F
secondary
#9A4DBB
accent
#41E7B5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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