#408D1D#408D1D

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

Color values

HEX#408D1D
RGBrgb(64, 141, 29)
HSLhsl(101, 66%, 33%)
HSVhsv(101, 79%, 55%)
CMYKcmyk(54.6%, 0%, 79.4%, 44.7%)
CIE-LABlab(52.09, -43.65, 48.56)
CIE-LCHlch(52.09, 65.29, 131.95°)
OKLaboklab(57.26% -0.1207 0.1082)
OKLCHoklch(57.26% 0.162 138.1)
XYZxyz(11.8606, 20.2275, 4.4415)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D1D #6A1D8D
analogous
#788D1D #408D1D #1D8D32
triadic
#408D1D #1D408D #8D1D40
tetradic
#408D1D #1D788D #6A1D8D #8D321D
square
#408D1D #1D788D #6A1D8D #8D321D
split-complementary
#408D1D #321D8D #8D1D78
monochromatic
#122708 #295A13 #408D1D #57C027 #77DA4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408D1D#FFFFFF#000000##000000
##408D1D1.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)
#928000
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d1d;
/* rgb */ color: rgb(64, 141, 29);
/* oklch */ color: oklch(57.3% 0.162 138.1);
Tailwind
colors: {
  custom: {
    50: '#7daf62',
    500: '#408d1d',
    950: '#000000',
  },
}
SCSS
$custom: #408d1d;
$custom-light: #7daf62;
$custom-dark: #000000;
JSON
{
  "hex": "#408d1d",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 101.25,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57256,
    "c": 0.16211,
    "h": 138.1
  },
  "luminance": 0.20228
}

Semantic roles & 50–950 ramp

primary
#408D1D
secondary
#984ABC
accent
#3FE9B4
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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