#408E21#408E21

#408E21 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.6% C 0.161 H 138.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#408E21
RGBrgb(64, 142, 33)
HSLhsl(103, 62%, 34%)
HSVhsv(103, 77%, 56%)
CMYKcmyk(54.9%, 0%, 76.8%, 44.3%)
CIE-LABlab(52.45, -43.77, 47.52)
CIE-LCHlch(52.45, 64.61, 132.65°)
OKLaboklab(57.56% -0.1208 0.1066)
OKLCHoklch(57.56% 0.161 138.6)
XYZxyz(12.0614, 20.5448, 4.7685)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E21 #6F218E
analogous
#778E21 #408E21 #218E39
triadic
#408E21 #21408E #8E2140
tetradic
#408E21 #21778E #6F218E #8E3921
square
#408E21 #21778E #6F218E #8E3921
split-complementary
#408E21 #39218E #8E2177
monochromatic
#132B0A #2A5C15 #408E21 #56C02D #78D752

Accessibility & contrast

On white

4.11
#408E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#408E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E21
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E21#FFFFFF#000000##000000
##408E211.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#887B2D
Tritanopia (blue-blind)
#398979
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e21;
/* rgb */ color: rgb(64, 142, 33);
/* oklch */ color: oklch(57.6% 0.161 138.6);
Tailwind
colors: {
  custom: {
    50: '#7db065',
    500: '#408e21',
    950: '#000000',
  },
}
SCSS
$custom: #408e21;
$custom-light: #7db065;
$custom-dark: #000000;
JSON
{
  "hex": "#408e21",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 102.936,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57555,
    "c": 0.16113,
    "h": 138.6
  },
  "luminance": 0.20546
}

Semantic roles & 50–950 ramp

primary
#408E21
secondary
#9C50BA
accent
#42E5B7
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408E21

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

Preview Lab → · Contrast checker → · Palette generator →

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