#407C2D#407C2D

#407C2D is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.8% C 0.129 H 138.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#407C2D
RGBrgb(64, 124, 45)
HSLhsl(106, 47%, 33%)
HSVhsv(106, 64%, 49%)
CMYKcmyk(48.4%, 0%, 63.7%, 51.4%)
CIE-LABlab(46.57, -35.28, 36.28)
CIE-LCHlch(46.57, 50.61, 134.20°)
OKLaboklab(52.75% -0.097 0.0846)
OKLCHoklch(52.75% 0.129 138.9)
XYZxyz(9.7953, 15.6941, 4.9952)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C2D #692D7C
analogous
#677C2D #407C2D #2D7C41
triadic
#407C2D #2D407C #7C2D40
tetradic
#407C2D #2D677C #692D7C #7C412D
square
#407C2D #2D677C #692D7C #7C412D
split-complementary
#407C2D #412D7C #7C2D67
monochromatic
#12220C #294F1D #407C2D #57A93D #77C55F

Accessibility & contrast

On white

5.07
#407C2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407C2D
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C2D#FFFFFF#000000##FFFFFF
##407C2D1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807224
Deuteranopia (green-blind)
#786C33
Tritanopia (blue-blind)
#3B786B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c2d;
/* rgb */ color: rgb(64, 124, 45);
/* oklch */ color: oklch(52.8% 0.129 138.9);
Tailwind
colors: {
  custom: {
    50: '#7aa269',
    500: '#407c2d',
    950: '#000000',
  },
}
SCSS
$custom: #407c2d;
$custom-light: #7aa269;
$custom-dark: #000000;
JSON
{
  "hex": "#407c2d",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 45
  },
  "hsl": {
    "h": 105.57,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52753,
    "c": 0.1287,
    "h": 138.9
  },
  "luminance": 0.15695
}

Semantic roles & 50–950 ramp

primary
#407C2D
secondary
#985AAB
accent
#51D6B6
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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