#406F2F#406F2F

#406F2F is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.2% C 0.108 H 138.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#406F2F
RGBrgb(64, 111, 47)
HSLhsl(104, 41%, 31%)
HSVhsv(104, 58%, 44%)
CMYKcmyk(42.3%, 0%, 57.7%, 56.5%)
CIE-LABlab(42.25, -29.15, 30.30)
CIE-LCHlch(42.25, 42.05, 133.90°)
OKLaboklab(49.23% -0.0802 0.0719)
OKLCHoklch(49.23% 0.108 138.1)
XYZxyz(8.3116, 12.6636, 4.6951)
Luminance0.1266 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F2F #5E2F6F
analogous
#606F2F #406F2F #2F6F3E
triadic
#406F2F #2F406F #6F2F40
tetradic
#406F2F #2F606F #5E2F6F #6F3E2F
square
#406F2F #2F606F #5E2F6F #6F3E2F
split-complementary
#406F2F #3E2F6F #6F2F60
monochromatic
#0E190B #27441D #406F2F #599A41 #76BB5E

Accessibility & contrast

On white

5.94
#406F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#406F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406F2F
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406F2F#FFFFFF#000000##FFFFFF
##406F2F1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726629
Deuteranopia (green-blind)
#6C6234
Tritanopia (blue-blind)
#3D6B61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #406f2f;
/* rgb */ color: rgb(64, 111, 47);
/* oklch */ color: oklch(49.2% 0.108 138.1);
Tailwind
colors: {
  custom: {
    50: '#789969',
    500: '#406f2f',
    950: '#000000',
  },
}
SCSS
$custom: #406f2f;
$custom-light: #789969;
$custom-dark: #000000;
JSON
{
  "hex": "#406f2f",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 47
  },
  "hsl": {
    "h": 104.063,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.49226,
    "c": 0.10767,
    "h": 138.1
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#406F2F
secondary
#8D59A0
accent
#57D0B0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #406F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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