#408D24#408D24

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

Color values

HEX#408D24
RGBrgb(64, 141, 36)
HSLhsl(104, 59%, 35%)
HSVhsv(104, 74%, 55%)
CMYKcmyk(54.6%, 0%, 74.5%, 44.7%)
CIE-LABlab(52.14, -43.16, 46.10)
CIE-LCHlch(52.14, 63.15, 133.12°)
OKLaboklab(57.3% -0.119 0.1041)
OKLCHoklch(57.3% 0.158 138.8)
XYZxyz(11.9572, 20.2662, 4.9504)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D24 #71248D
analogous
#758D24 #408D24 #248D3D
triadic
#408D24 #24408D #8D2440
tetradic
#408D24 #24758D #71248D #8D3D24
square
#408D24 #24758D #71248D #8D3D24
split-complementary
#408D24 #3D248D #8D2475
monochromatic
#142B0B #2A5C18 #408D24 #56BE30 #79D457

Accessibility & contrast

On white

4.16
#408D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#408D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D24
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D24#FFFFFF#000000##000000
##408D241.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408d24;
/* rgb */ color: rgb(64, 141, 36);
/* oklch */ color: oklch(57.3% 0.158 138.8);
Tailwind
colors: {
  custom: {
    50: '#7daf66',
    500: '#408d24',
    950: '#000000',
  },
}
SCSS
$custom: #408d24;
$custom-light: #7daf66;
$custom-dark: #000000;
JSON
{
  "hex": "#408d24",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 104,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57305,
    "c": 0.15807,
    "h": 138.8
  },
  "luminance": 0.20267
}

Semantic roles & 50–950 ramp

primary
#408D24
secondary
#9E54B8
accent
#45E3B9
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408D24

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

Preview Lab → · Contrast checker → · Palette generator →

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