#408F27#408F27

#408F27 is a mid, vivid green. Relative luminance 0.209; OKLCH L 57.9% C 0.159 H 139.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#408F27
RGBrgb(64, 143, 39)
HSLhsl(106, 57%, 36%)
HSVhsv(106, 73%, 56%)
CMYKcmyk(55.2%, 0%, 72.7%, 43.9%)
CIE-LABlab(52.82, -43.71, 45.62)
CIE-LCHlch(52.82, 63.18, 133.77°)
OKLaboklab(57.87% -0.1202 0.1035)
OKLCHoklch(57.87% 0.159 139.3)
XYZxyz(12.3025, 20.8804, 5.3011)
Luminance0.2088 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F27 #76278F
analogous
#748F27 #408F27 #278F42
triadic
#408F27 #27408F #8F2740
tetradic
#408F27 #27748F #76278F #8F4227
square
#408F27 #27748F #76278F #8F4227
split-complementary
#408F27 #42278F #8F2774
monochromatic
#152F0D #2A5F1A #408F27 #56BF34 #7AD35D

Accessibility & contrast

On white

4.06
#408F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#408F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F27
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F27#FFFFFF#000000##000000
##408F271.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938216
Deuteranopia (green-blind)
#897C31
Tritanopia (blue-blind)
#388A7A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f27;
/* rgb */ color: rgb(64, 143, 39);
/* oklch */ color: oklch(57.9% 0.159 139.3);
Tailwind
colors: {
  custom: {
    50: '#7db068',
    500: '#408f27',
    950: '#000000',
  },
}
SCSS
$custom: #408f27;
$custom-light: #7db068;
$custom-dark: #000000;
JSON
{
  "hex": "#408f27",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 105.577,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57874,
    "c": 0.15868,
    "h": 139.3
  },
  "luminance": 0.20881
}

Semantic roles & 50–950 ramp

primary
#408F27
secondary
#A15AB8
accent
#47E0BC
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #408F27

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

Preview Lab → · Contrast checker → · Palette generator →

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