#408D20#408D20

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

Color values

HEX#408D20
RGBrgb(64, 141, 32)
HSLhsl(102, 63%, 34%)
HSVhsv(102, 77%, 55%)
CMYKcmyk(54.6%, 0%, 77.3%, 44.7%)
CIE-LABlab(52.11, -43.45, 47.54)
CIE-LCHlch(52.11, 64.41, 132.43°)
OKLaboklab(57.28% -0.12 0.1065)
OKLCHoklch(57.28% 0.16 138.4)
XYZxyz(11.8995, 20.2431, 4.6465)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D20 #6D208D
analogous
#778D20 #408D20 #208D36
triadic
#408D20 #20408D #8D2040
tetradic
#408D20 #20778D #6D208D #8D3620
square
#408D20 #20778D #6D208D #8D3620
split-complementary
#408D20 #36208D #8D2077
monochromatic
#132909 #295B15 #408D20 #57BF2B #78D750

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #408d20;
/* rgb */ color: rgb(64, 141, 32);
/* oklch */ color: oklch(57.3% 0.160 138.4);
Tailwind
colors: {
  custom: {
    50: '#7daf64',
    500: '#408d20',
    950: '#000000',
  },
}
SCSS
$custom: #408d20;
$custom-light: #7daf64;
$custom-dark: #000000;
JSON
{
  "hex": "#408d20",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 102.385,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57276,
    "c": 0.16046,
    "h": 138.4
  },
  "luminance": 0.20244
}

Semantic roles & 50–950 ramp

primary
#408D20
secondary
#9B4EBA
accent
#42E6B6
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #408D20

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

Preview Lab → · Contrast checker → · Palette generator →

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