#408D1B#408D1B

#408D1B is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.163 H 138.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#408D1B
RGBrgb(64, 141, 27)
HSLhsl(101, 68%, 33%)
HSVhsv(101, 81%, 55%)
CMYKcmyk(54.6%, 0%, 80.9%, 44.7%)
CIE-LABlab(52.08, -43.77, 49.19)
CIE-LCHlch(52.08, 65.85, 131.66°)
OKLaboklab(57.24% -0.1212 0.1092)
OKLCHoklch(57.24% 0.163 138)
XYZxyz(11.8366, 20.2179, 4.3154)
Luminance0.2022 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D1B #681B8D
analogous
#798D1B #408D1B #1B8D2F
triadic
#408D1B #1B408D #8D1B40
tetradic
#408D1B #1B798D #681B8D #8D2F1B
square
#408D1B #1B798D #681B8D #8D2F1B
split-complementary
#408D1B #2F1B8D #8D1B79
monochromatic
#112607 #295A11 #408D1B #57C025 #77DC47

Accessibility & contrast

On white

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

On black

5.04
#408D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D1B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D1B#FFFFFF#000000##000000
##408D1B1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d1b;
/* rgb */ color: rgb(64, 141, 27);
/* oklch */ color: oklch(57.2% 0.163 138.0);
Tailwind
colors: {
  custom: {
    50: '#7eaf62',
    500: '#408d1b',
    950: '#000000',
  },
}
SCSS
$custom: #408d1b;
$custom-light: #7eaf62;
$custom-dark: #000000;
JSON
{
  "hex": "#408d1b",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 100.526,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57243,
    "c": 0.16313,
    "h": 138
  },
  "luminance": 0.20219
}

Semantic roles & 50–950 ramp

primary
#408D1B
secondary
#9746BD
accent
#3DEBB2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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