#408E1B#408E1B

#408E1B is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.5% C 0.164 H 138.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#408E1B
RGBrgb(64, 142, 27)
HSLhsl(101, 68%, 33%)
HSVhsv(101, 81%, 56%)
CMYKcmyk(54.9%, 0%, 81%, 44.3%)
CIE-LABlab(52.41, -44.16, 49.51)
CIE-LCHlch(52.41, 66.34, 131.73°)
OKLaboklab(57.52% -0.1222 0.1099)
OKLCHoklch(57.52% 0.164 138)
XYZxyz(11.9848, 20.5142, 4.3648)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E1B #691B8E
analogous
#798E1B #408E1B #1B8E30
triadic
#408E1B #1B408E #8E1B40
tetradic
#408E1B #1B798E #691B8E #8E301B
square
#408E1B #1B798E #691B8E #8E301B
split-complementary
#408E1B #301B8E #8E1B79
monochromatic
#122707 #295B11 #408E1B #57C125 #77DC47

Accessibility & contrast

On white

4.12
#408E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#408E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E1B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E1B#FFFFFF#000000##000000
##408E1B1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#3A8979
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e1b;
/* rgb */ color: rgb(64, 142, 27);
/* oklch */ color: oklch(57.5% 0.164 138.0);
Tailwind
colors: {
  custom: {
    50: '#7eb062',
    500: '#408e1b',
    950: '#000000',
  },
}
SCSS
$custom: #408e1b;
$custom-light: #7eb062;
$custom-dark: #000000;
JSON
{
  "hex": "#408e1b",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 100.696,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57516,
    "c": 0.16435,
    "h": 138
  },
  "luminance": 0.20515
}

Semantic roles & 50–950 ramp

primary
#408E1B
secondary
#9847BE
accent
#3DEBB3
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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