#408D21#408D21

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

Color values

HEX#408D21
RGBrgb(64, 141, 33)
HSLhsl(103, 62%, 34%)
HSVhsv(103, 77%, 55%)
CMYKcmyk(54.6%, 0%, 76.6%, 44.7%)
CIE-LABlab(52.12, -43.38, 47.19)
CIE-LCHlch(52.12, 64.10, 132.59°)
OKLaboklab(57.28% -0.1197 0.1059)
OKLCHoklch(57.28% 0.16 138.5)
XYZxyz(11.9133, 20.2486, 4.7191)
Luminance0.2025 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D21 #6E218D
analogous
#768D21 #408D21 #218D38
triadic
#408D21 #21408D #8D2140
tetradic
#408D21 #21768D #6E218D #8D3821
square
#408D21 #21768D #6E218D #8D3821
split-complementary
#408D21 #38218D #8D2176
monochromatic
#132A0A #295B15 #408D21 #57BF2D #78D652

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408D21#FFFFFF#000000##000000
##408D211.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)
#91800A
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#398878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d21;
/* rgb */ color: rgb(64, 141, 33);
/* oklch */ color: oklch(57.3% 0.160 138.5);
Tailwind
colors: {
  custom: {
    50: '#7daf64',
    500: '#408d21',
    950: '#000000',
  },
}
SCSS
$custom: #408d21;
$custom-light: #7daf64;
$custom-dark: #000000;
JSON
{
  "hex": "#408d21",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 102.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57283,
    "c": 0.15989,
    "h": 138.5
  },
  "luminance": 0.2025
}

Semantic roles & 50–950 ramp

primary
#408D21
secondary
#9B50BA
accent
#43E5B7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408D21

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

Preview Lab → · Contrast checker → · Palette generator →

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