#408C2A#408C2A

#408C2A is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.1% C 0.153 H 139.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#408C2A
RGBrgb(64, 140, 42)
HSLhsl(107, 54%, 36%)
HSVhsv(107, 70%, 55%)
CMYKcmyk(54.3%, 0%, 70%, 45.1%)
CIE-LABlab(51.85, -42.26, 43.39)
CIE-LCHlch(51.85, 60.57, 134.24°)
OKLaboklab(57.08% -0.1161 0.0993)
OKLCHoklch(57.08% 0.153 139.5)
XYZxyz(11.9099, 20.0124, 5.4252)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C2A #762A8C
analogous
#718C2A #408C2A #2A8C45
triadic
#408C2A #2A408C #8C2A40
tetradic
#408C2A #2A718C #762A8C #8C452A
square
#408C2A #2A718C #762A8C #8C452A
split-complementary
#408C2A #452A8C #8C2A71
monochromatic
#152E0E #2A5D1C #408C2A #56BB38 #7AD061

Accessibility & contrast

On white

4.20
#408C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#408C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C2A
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C2A#FFFFFF#000000##000000
##408C2A1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801C
Deuteranopia (green-blind)
#867933
Tritanopia (blue-blind)
#388778
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408c2a;
/* rgb */ color: rgb(64, 140, 42);
/* oklch */ color: oklch(57.1% 0.153 139.5);
Tailwind
colors: {
  custom: {
    50: '#7dae69',
    500: '#408c2a',
    950: '#000000',
  },
}
SCSS
$custom: #408c2a;
$custom-light: #7dae69;
$custom-dark: #000000;
JSON
{
  "hex": "#408c2a",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 42
  },
  "hsl": {
    "h": 106.531,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57084,
    "c": 0.15276,
    "h": 139.5
  },
  "luminance": 0.20013
}

Semantic roles & 50–950 ramp

primary
#408C2A
secondary
#A15CB5
accent
#4BDDBC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #408C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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