#408C20#408C20

#408C20 is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.0% C 0.159 H 138.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#408C20
RGBrgb(64, 140, 32)
HSLhsl(102, 63%, 34%)
HSVhsv(102, 77%, 55%)
CMYKcmyk(54.3%, 0%, 77.1%, 45.1%)
CIE-LABlab(51.78, -43.06, 47.22)
CIE-LCHlch(51.78, 63.90, 132.36°)
OKLaboklab(57% -0.1189 0.1059)
OKLCHoklch(57% 0.159 138.3)
XYZxyz(11.7527, 19.9495, 4.5975)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C20 #6C208C
analogous
#768C20 #408C20 #208C36
triadic
#408C20 #20408C #8C2040
tetradic
#408C20 #20768C #6C208C #8C3620
square
#408C20 #20768C #6C208C #8C3620
split-complementary
#408C20 #36208C #8C2076
monochromatic
#122809 #295A15 #408C20 #57BE2B #78D750

Accessibility & contrast

On white

4.21
#408C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#408C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C20
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C20#FFFFFF#000000##000000
##408C201.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c20;
/* rgb */ color: rgb(64, 140, 32);
/* oklch */ color: oklch(57.0% 0.159 138.3);
Tailwind
colors: {
  custom: {
    50: '#7dae64',
    500: '#408c20',
    950: '#000000',
  },
}
SCSS
$custom: #408c20;
$custom-light: #7dae64;
$custom-dark: #000000;
JSON
{
  "hex": "#408c20",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 102.222,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57003,
    "c": 0.15922,
    "h": 138.3
  },
  "luminance": 0.1995
}

Semantic roles & 50–950 ramp

primary
#408C20
secondary
#9A4EBA
accent
#42E6B5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408C20

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

Preview Lab → · Contrast checker → · Palette generator →

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