#408E27#408E27

#408E27 is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.6% C 0.157 H 139.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#408E27
RGBrgb(64, 142, 39)
HSLhsl(105, 57%, 35%)
HSVhsv(105, 73%, 56%)
CMYKcmyk(54.9%, 0%, 72.5%, 44.3%)
CIE-LABlab(52.49, -43.31, 45.28)
CIE-LCHlch(52.49, 62.66, 133.73°)
OKLaboklab(57.6% -0.1192 0.1028)
OKLCHoklch(57.6% 0.157 139.2)
XYZxyz(12.1531, 20.5815, 5.2513)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E27 #75278E
analogous
#738E27 #408E27 #278E41
triadic
#408E27 #27408E #8E2740
tetradic
#408E27 #27738E #75278E #8E4127
square
#408E27 #27738E #75278E #8E4127
split-complementary
#408E27 #41278E #8E2773
monochromatic
#152E0D #2A5E1A #408E27 #56BE34 #79D25D

Accessibility & contrast

On white

4.10
#408E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#408E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E27
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E27#FFFFFF#000000##000000
##408E271.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928116
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#38897A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e27;
/* rgb */ color: rgb(64, 142, 39);
/* oklch */ color: oklch(57.6% 0.157 139.2);
Tailwind
colors: {
  custom: {
    50: '#7db068',
    500: '#408e27',
    950: '#000000',
  },
}
SCSS
$custom: #408e27;
$custom-light: #7db068;
$custom-dark: #000000;
JSON
{
  "hex": "#408e27",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 105.437,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57602,
    "c": 0.1574,
    "h": 139.2
  },
  "luminance": 0.20582
}

Semantic roles & 50–950 ramp

primary
#408E27
secondary
#A159B8
accent
#48E0BB
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408E27

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

Preview Lab → · Contrast checker → · Palette generator →

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