#408B20#408B20

#408B20 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.7% C 0.158 H 138.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#408B20
RGBrgb(64, 139, 32)
HSLhsl(102, 63%, 34%)
HSVhsv(102, 77%, 55%)
CMYKcmyk(54%, 0%, 77%, 45.5%)
CIE-LABlab(51.45, -42.66, 46.89)
CIE-LCHlch(51.45, 63.40, 132.30°)
OKLaboklab(56.73% -0.1179 0.1052)
OKLCHoklch(56.73% 0.158 138.3)
XYZxyz(11.6073, 19.6586, 4.5491)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B20 #6B208B
analogous
#758B20 #408B20 #208B35
triadic
#408B20 #20408B #8B2040
tetradic
#408B20 #20758B #6B208B #8B3520
square
#408B20 #20758B #6B208B #8B3520
split-complementary
#408B20 #35208B #8B2075
monochromatic
#122809 #295915 #408B20 #57BD2B #77D64F

Accessibility & contrast

On white

4.26
#408B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#408B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B20
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B20#FFFFFF#000000##000000
##408B201.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E08
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#3A8677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408b20;
/* rgb */ color: rgb(64, 139, 32);
/* oklch */ color: oklch(56.7% 0.158 138.3);
Tailwind
colors: {
  custom: {
    50: '#7dad64',
    500: '#408b20',
    950: '#000000',
  },
}
SCSS
$custom: #408b20;
$custom-light: #7dad64;
$custom-dark: #000000;
JSON
{
  "hex": "#408b20",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 102.056,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5673,
    "c": 0.15798,
    "h": 138.3
  },
  "luminance": 0.1966
}

Semantic roles & 50–950 ramp

primary
#408B20
secondary
#994DBA
accent
#42E6B5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408B20

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

Preview Lab → · Contrast checker → · Palette generator →

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