#407C2B#407C2B

#407C2B is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.7% C 0.130 H 138.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#407C2B
RGBrgb(64, 124, 43)
HSLhsl(104, 49%, 33%)
HSVhsv(104, 65%, 49%)
CMYKcmyk(48.4%, 0%, 65.3%, 51.4%)
CIE-LABlab(46.55, -35.49, 37.21)
CIE-LCHlch(46.55, 51.42, 133.65°)
OKLaboklab(52.73% -0.0977 0.0863)
OKLCHoklch(52.73% 0.13 138.5)
XYZxyz(9.7577, 15.6791, 4.7972)
Luminance0.1568 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C2B #672B7C
analogous
#697C2B #407C2B #2B7C3E
triadic
#407C2B #2B407C #7C2B40
tetradic
#407C2B #2B697C #672B7C #7C3E2B
square
#407C2B #2B697C #672B7C #7C3E2B
split-complementary
#407C2B #3E2B7C #7C2B69
monochromatic
#11210B #294F1B #407C2B #57A93B #77C65B

Accessibility & contrast

On white

5.08
#407C2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#407C2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C2B
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C2B#FFFFFF#000000##FFFFFF
##407C2B1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807221
Deuteranopia (green-blind)
#786C32
Tritanopia (blue-blind)
#3C786B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c2b;
/* rgb */ color: rgb(64, 124, 43);
/* oklch */ color: oklch(52.7% 0.130 138.5);
Tailwind
colors: {
  custom: {
    50: '#7aa268',
    500: '#407c2b',
    950: '#000000',
  },
}
SCSS
$custom: #407c2b;
$custom-light: #7aa268;
$custom-dark: #000000;
JSON
{
  "hex": "#407c2b",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 104.444,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5273,
    "c": 0.13039,
    "h": 138.5
  },
  "luminance": 0.1568
}

Semantic roles & 50–950 ramp

primary
#407C2B
secondary
#9657AC
accent
#50D8B5
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407C2B

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

Preview Lab → · Contrast checker → · Palette generator →

#407C2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva