#406A2F#406A2F

#406A2F is a mid, moderate green. Relative luminance 0.116; OKLCH L 47.9% C 0.100 H 137.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#406A2F
RGBrgb(64, 106, 47)
HSLhsl(103, 39%, 30%)
HSVhsv(103, 56%, 42%)
CMYKcmyk(39.6%, 0%, 55.7%, 58.4%)
CIE-LABlab(40.58, -26.76, 28.31)
CIE-LCHlch(40.58, 38.96, 133.40°)
OKLaboklab(47.86% -0.0736 0.0675)
OKLCHoklch(47.86% 0.1 137.5)
XYZxyz(7.7812, 11.6029, 4.5184)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A2F #592F6A
analogous
#5D6A2F #406A2F #2F6A3C
triadic
#406A2F #2F406A #6A2F40
tetradic
#406A2F #2F5D6A #592F6A #6A3C2F
square
#406A2F #2F5D6A #592F6A #6A3C2F
split-complementary
#406A2F #3C2F6A #6A2F5D
monochromatic
#0D1509 #26401C #406A2F #5A9442 #77B75C

Accessibility & contrast

On white

6.32
#406A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#406A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406A2F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406A2F#FFFFFF#000000##FFFFFF
##406A2F1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D622A
Deuteranopia (green-blind)
#675E33
Tritanopia (blue-blind)
#3E675D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #406a2f;
/* rgb */ color: rgb(64, 106, 47);
/* oklch */ color: oklch(47.9% 0.100 137.5);
Tailwind
colors: {
  custom: {
    50: '#789569',
    500: '#406a2f',
    950: '#000000',
  },
}
SCSS
$custom: #406a2f;
$custom-light: #789569;
$custom-dark: #000000;
JSON
{
  "hex": "#406a2f",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 47
  },
  "hsl": {
    "h": 102.712,
    "s": 38.562,
    "l": 30
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.09989,
    "h": 137.5
  },
  "luminance": 0.11603
}

Semantic roles & 50–950 ramp

primary
#406A2F
secondary
#88599B
accent
#59CEAD
background
#F7F9F6
surface
#EDF1EB
border
#C8CBC6
text
#090D06
muted
#7B7E7A

Preview Lab

Preview with #406A2F

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

Preview Lab → · Contrast checker → · Palette generator →

#406A2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva