#407E2D#407E2D

#407E2D is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.3% C 0.132 H 139.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#407E2D
RGBrgb(64, 126, 45)
HSLhsl(106, 47%, 34%)
HSVhsv(106, 64%, 49%)
CMYKcmyk(49.2%, 0%, 64.3%, 50.6%)
CIE-LABlab(47.24, -36.15, 37.03)
CIE-LCHlch(47.24, 51.75, 134.31°)
OKLaboklab(53.3% -0.0994 0.0862)
OKLCHoklch(53.3% 0.132 139.1)
XYZxyz(10.0485, 16.2005, 5.0796)
Luminance0.1620 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E2D #6B2D7E
analogous
#687E2D #407E2D #2D7E42
triadic
#407E2D #2D407E #7E2D40
tetradic
#407E2D #2D687E #6B2D7E #7E422D
square
#407E2D #2D687E #6B2D7E #7E422D
split-complementary
#407E2D #422D7E #7E2D68
monochromatic
#12240D #29511D #407E2D #57AB3D #77C65F

Accessibility & contrast

On white

4.95
#407E2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#407E2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E2D
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E2D#FFFFFF#000000##FFFFFF
##407E2D1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827324
Deuteranopia (green-blind)
#796E34
Tritanopia (blue-blind)
#3B7A6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e2d;
/* rgb */ color: rgb(64, 126, 45);
/* oklch */ color: oklch(53.3% 0.132 139.1);
Tailwind
colors: {
  custom: {
    50: '#7aa469',
    500: '#407e2d',
    950: '#000000',
  },
}
SCSS
$custom: #407e2d;
$custom-light: #7aa469;
$custom-dark: #000000;
JSON
{
  "hex": "#407e2d",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 105.926,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53299,
    "c": 0.13152,
    "h": 139.1
  },
  "luminance": 0.16201
}

Semantic roles & 50–950 ramp

primary
#407E2D
secondary
#995AAC
accent
#51D7B8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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