#408D27#408D27

#408D27 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.3% C 0.156 H 139.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#408D27
RGBrgb(64, 141, 39)
HSLhsl(105, 57%, 35%)
HSVhsv(105, 72%, 55%)
CMYKcmyk(54.6%, 0%, 72.3%, 44.7%)
CIE-LABlab(52.16, -42.92, 44.94)
CIE-LCHlch(52.16, 62.14, 133.68°)
OKLaboklab(57.33% -0.1181 0.1021)
OKLCHoklch(57.33% 0.156 139.2)
XYZxyz(12.0050, 20.2853, 5.2019)
Luminance0.2029 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D27 #74278D
analogous
#738D27 #408D27 #278D41
triadic
#408D27 #27408D #8D2740
tetradic
#408D27 #27738D #74278D #8D4127
square
#408D27 #27738D #74278D #8D4127
split-complementary
#408D27 #41278D #8D2773
monochromatic
#142D0C #2A5D1A #408D27 #56BD34 #79D25C

Accessibility & contrast

On white

4.15
#408D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#408D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D27
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D27#FFFFFF#000000##000000
##408D271.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918017
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#398879
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d27;
/* rgb */ color: rgb(64, 141, 39);
/* oklch */ color: oklch(57.3% 0.156 139.2);
Tailwind
colors: {
  custom: {
    50: '#7daf67',
    500: '#408d27',
    950: '#000000',
  },
}
SCSS
$custom: #408d27;
$custom-light: #7daf67;
$custom-dark: #000000;
JSON
{
  "hex": "#408d27",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 105.294,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.5733,
    "c": 0.15612,
    "h": 139.2
  },
  "luminance": 0.20286
}

Semantic roles & 50–950 ramp

primary
#408D27
secondary
#A059B7
accent
#48E0BB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408D27

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

Preview Lab → · Contrast checker → · Palette generator →

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