#408B28#408B28

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

Color values

HEX#408B28
RGBrgb(64, 139, 40)
HSLhsl(105, 55%, 35%)
HSVhsv(105, 71%, 55%)
CMYKcmyk(54%, 0%, 71.2%, 45.5%)
CIE-LABlab(51.50, -42.04, 43.86)
CIE-LCHlch(51.50, 60.75, 133.78°)
OKLaboklab(56.79% -0.1157 0.1)
OKLCHoklch(56.79% 0.153 139.2)
XYZxyz(11.7295, 19.7075, 5.1929)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B28 #73288B
analogous
#718B28 #408B28 #288B42
triadic
#408B28 #28408B #8B2840
tetradic
#408B28 #28718B #73288B #8B4228
square
#408B28 #28718B #73288B #8B4228
split-complementary
#408B28 #42288B #8B2871
monochromatic
#142C0D #2A5B1A #408B28 #56BB36 #79D05D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408B28#FFFFFF#000000##000000
##408B281.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)
#8F7F19
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#398677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408b28;
/* rgb */ color: rgb(64, 139, 40);
/* oklch */ color: oklch(56.8% 0.153 139.2);
Tailwind
colors: {
  custom: {
    50: '#7dad68',
    500: '#408b28',
    950: '#000000',
  },
}
SCSS
$custom: #408b28;
$custom-light: #7dad68;
$custom-dark: #000000;
JSON
{
  "hex": "#408b28",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 105.455,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.56794,
    "c": 0.15288,
    "h": 139.2
  },
  "luminance": 0.19708
}

Semantic roles & 50–950 ramp

primary
#408B28
secondary
#9F59B6
accent
#49DFBA
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408B28

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

Preview Lab → · Contrast checker → · Palette generator →

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