#408F28#408F28

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

Color values

HEX#408F28
RGBrgb(64, 143, 40)
HSLhsl(106, 56%, 36%)
HSVhsv(106, 72%, 56%)
CMYKcmyk(55.2%, 0%, 72%, 43.9%)
CIE-LABlab(52.83, -43.62, 45.23)
CIE-LCHlch(52.83, 62.84, 133.96°)
OKLaboklab(57.88% -0.12 0.1028)
OKLCHoklch(57.88% 0.158 139.4)
XYZxyz(12.3193, 20.8871, 5.3895)
Luminance0.2089 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F28 #77288F
analogous
#738F28 #408F28 #288F43
triadic
#408F28 #28408F #8F2840
tetradic
#408F28 #28738F #77288F #8F4328
square
#408F28 #28738F #77288F #8F4328
split-complementary
#408F28 #43288F #8F2873
monochromatic
#152F0D #2B5F1B #408F28 #55BF35 #7AD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408F28#FFFFFF#000000##000000
##408F281.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)
#938218
Deuteranopia (green-blind)
#897C32
Tritanopia (blue-blind)
#388A7B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f28;
/* rgb */ color: rgb(64, 143, 40);
/* oklch */ color: oklch(57.9% 0.158 139.4);
Tailwind
colors: {
  custom: {
    50: '#7db068',
    500: '#408f28',
    950: '#000000',
  },
}
SCSS
$custom: #408f28;
$custom-light: #7db068;
$custom-dark: #000000;
JSON
{
  "hex": "#408f28",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 106.019,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57882,
    "c": 0.15801,
    "h": 139.4
  },
  "luminance": 0.20888
}

Semantic roles & 50–950 ramp

primary
#408F28
secondary
#A25BB8
accent
#48E0BC
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #408F28

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

Preview Lab → · Contrast checker → · Palette generator →

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