#408020#408020

#408020 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.7% C 0.144 H 137.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#408020
RGBrgb(64, 128, 32)
HSLhsl(100, 60%, 31%)
HSVhsv(100, 75%, 50%)
CMYKcmyk(50%, 0%, 75%, 49.8%)
CIE-LABlab(47.79, -38.19, 43.26)
CIE-LCHlch(47.79, 57.70, 131.44°)
OKLaboklab(53.72% -0.1058 0.0976)
OKLCHoklch(53.72% 0.144 137.3)
XYZxyz(10.0939, 16.6319, 4.0446)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408020 #602080
analogous
#708020 #408020 #208030
triadic
#408020 #204080 #802040
tetradic
#408020 #207080 #602080 #803020
square
#408020 #207080 #602080 #803020
split-complementary
#408020 #302080 #802070
monochromatic
#0F1E08 #284F14 #408020 #58B12C #76D149

Accessibility & contrast

On white

4.85
#408020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#408020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408020
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408020#FFFFFF#000000##FFFFFF
##4080201.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750F
Deuteranopia (green-blind)
#7C6F29
Tritanopia (blue-blind)
#3C7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #408020;
/* rgb */ color: rgb(64, 128, 32);
/* oklch */ color: oklch(53.7% 0.144 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ba562',
    500: '#408020',
    950: '#000000',
  },
}
SCSS
$custom: #408020;
$custom-light: #7ba562;
$custom-dark: #000000;
JSON
{
  "hex": "#408020",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 100,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53721,
    "c": 0.14394,
    "h": 137.3
  },
  "luminance": 0.16633
}

Semantic roles & 50–950 ramp

primary
#408020
secondary
#9049B3
accent
#45E3AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #408020

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

Preview Lab → · Contrast checker → · Palette generator →

#408020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva