#408B27#408B27

#408B27 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.8% C 0.154 H 139.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#408B27
RGBrgb(64, 139, 39)
HSLhsl(105, 56%, 35%)
HSVhsv(105, 72%, 55%)
CMYKcmyk(54%, 0%, 71.9%, 45.5%)
CIE-LABlab(51.50, -42.12, 44.26)
CIE-LCHlch(51.50, 61.10, 133.58°)
OKLaboklab(56.79% -0.116 0.1007)
OKLCHoklch(56.79% 0.154 139)
XYZxyz(11.7127, 19.7008, 5.1045)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B27 #72278B
analogous
#728B27 #408B27 #278B40
triadic
#408B27 #27408B #8B2740
tetradic
#408B27 #27728B #72278B #8B4027
square
#408B27 #27728B #72278B #8B4027
split-complementary
#408B27 #40278B #8B2772
monochromatic
#142B0C #2A5B1A #408B27 #56BB34 #79D15B

Accessibility & contrast

On white

4.25
#408B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#408B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B27
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B27#FFFFFF#000000##000000
##408B271.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F17
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#398677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408b27;
/* rgb */ color: rgb(64, 139, 39);
/* oklch */ color: oklch(56.8% 0.154 139.0);
Tailwind
colors: {
  custom: {
    50: '#7dad67',
    500: '#408b27',
    950: '#000000',
  },
}
SCSS
$custom: #408b27;
$custom-light: #7dad67;
$custom-dark: #000000;
JSON
{
  "hex": "#408b27",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 105,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56785,
    "c": 0.15356,
    "h": 139
  },
  "luminance": 0.19702
}

Semantic roles & 50–950 ramp

primary
#408B27
secondary
#9F58B6
accent
#48DFBA
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408B27

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

Preview Lab → · Contrast checker → · Palette generator →

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