#406E2F#406E2F

#406E2F is a mid, moderate green. Relative luminance 0.124; OKLCH L 49.0% C 0.106 H 138.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#406E2F
RGBrgb(64, 110, 47)
HSLhsl(104, 40%, 31%)
HSVhsv(104, 57%, 43%)
CMYKcmyk(41.8%, 0%, 57.3%, 56.9%)
CIE-LABlab(41.92, -28.68, 29.90)
CIE-LCHlch(41.92, 41.44, 133.80°)
OKLaboklab(48.95% -0.0789 0.071)
OKLCHoklch(48.95% 0.106 138)
XYZxyz(8.2031, 12.4466, 4.6590)
Luminance0.1245 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E2F #5D2F6E
analogous
#5F6E2F #406E2F #2F6E3E
triadic
#406E2F #2F406E #6E2F40
tetradic
#406E2F #2F5F6E #5D2F6E #6E3E2F
square
#406E2F #2F5F6E #5D2F6E #6E3E2F
split-complementary
#406E2F #3E2F6E #6E2F5F
monochromatic
#0E180A #27431D #406E2F #599941 #76BA5D

Accessibility & contrast

On white

6.02
#406E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#406E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406E2F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406E2F#FFFFFF#000000##FFFFFF
##406E2F1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716529
Deuteranopia (green-blind)
#6B6133
Tritanopia (blue-blind)
#3D6A60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406e2f;
/* rgb */ color: rgb(64, 110, 47);
/* oklch */ color: oklch(49.0% 0.106 138.0);
Tailwind
colors: {
  custom: {
    50: '#789869',
    500: '#406e2f',
    950: '#000000',
  },
}
SCSS
$custom: #406e2f;
$custom-light: #789869;
$custom-dark: #000000;
JSON
{
  "hex": "#406e2f",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 47
  },
  "hsl": {
    "h": 103.81,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.48953,
    "c": 0.10613,
    "h": 138
  },
  "luminance": 0.12447
}

Semantic roles & 50–950 ramp

primary
#406E2F
secondary
#8C599F
accent
#58D0B0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090D06
muted
#7B7E7A

Preview Lab

Preview with #406E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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