#407F2E#407F2E

#407F2E is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.6% C 0.132 H 139.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#407F2E
RGBrgb(64, 127, 46)
HSLhsl(107, 47%, 34%)
HSVhsv(107, 64%, 50%)
CMYKcmyk(49.6%, 0%, 63.8%, 50.2%)
CIE-LABlab(47.58, -36.47, 36.94)
CIE-LCHlch(47.58, 51.91, 134.63°)
OKLaboklab(53.58% -0.1002 0.0861)
OKLCHoklch(53.58% 0.132 139.3)
XYZxyz(10.1965, 16.4653, 5.2251)
Luminance0.1647 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F2E #6D2E7F
analogous
#697F2E #407F2E #2E7F45
triadic
#407F2E #2E407F #7F2E40
tetradic
#407F2E #2E697F #6D2E7F #7F452E
square
#407F2E #2E697F #6D2E7F #7F452E
split-complementary
#407F2E #452E7F #7F2E69
monochromatic
#13250D #29521E #407F2E #57AC3E #78C661

Accessibility & contrast

On white

4.89
#407F2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#407F2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F2E
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F2E#FFFFFF#000000##FFFFFF
##407F2E1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837425
Deuteranopia (green-blind)
#7A6F35
Tritanopia (blue-blind)
#3B7B6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f2e;
/* rgb */ color: rgb(64, 127, 46);
/* oklch */ color: oklch(53.6% 0.132 139.3);
Tailwind
colors: {
  custom: {
    50: '#7aa56a',
    500: '#407f2e',
    950: '#000000',
  },
}
SCSS
$custom: #407f2e;
$custom-light: #7aa56a;
$custom-dark: #000000;
JSON
{
  "hex": "#407f2e",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 106.667,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.53584,
    "c": 0.13207,
    "h": 139.3
  },
  "luminance": 0.16466
}

Semantic roles & 50–950 ramp

primary
#407F2E
secondary
#9B5CAD
accent
#51D6B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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