#407E2E#407E2E

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

Color values

HEX#407E2E
RGBrgb(64, 126, 46)
HSLhsl(107, 47%, 34%)
HSVhsv(107, 63%, 49%)
CMYKcmyk(49.2%, 0%, 63.5%, 50.6%)
CIE-LABlab(47.25, -36.04, 36.57)
CIE-LCHlch(47.25, 51.34, 134.58°)
OKLaboklab(53.31% -0.099 0.0853)
OKLCHoklch(53.31% 0.131 139.3)
XYZxyz(10.0680, 16.2083, 5.1822)
Luminance0.1621 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E2E #6C2E7E
analogous
#687E2E #407E2E #2E7E44
triadic
#407E2E #2E407E #7E2E40
tetradic
#407E2E #2E687E #6C2E7E #7E442E
square
#407E2E #2E687E #6C2E7E #7E442E
split-complementary
#407E2E #442E7E #7E2E68
monochromatic
#12240D #29511E #407E2E #57AB3E #78C561

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407E2E#FFFFFF#000000##FFFFFF
##407E2E1.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)
#827325
Deuteranopia (green-blind)
#796E34
Tritanopia (blue-blind)
#3B7A6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e2e;
/* rgb */ color: rgb(64, 126, 46);
/* oklch */ color: oklch(53.3% 0.131 139.3);
Tailwind
colors: {
  custom: {
    50: '#7aa46a',
    500: '#407e2e',
    950: '#000000',
  },
}
SCSS
$custom: #407e2e;
$custom-light: #7aa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#407e2e",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 106.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.53311,
    "c": 0.13067,
    "h": 139.3
  },
  "luminance": 0.16209
}

Semantic roles & 50–950 ramp

primary
#407E2E
secondary
#9A5CAC
accent
#52D6B8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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