#407E2F#407E2F

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

Color values

HEX#407E2F
RGBrgb(64, 126, 47)
HSLhsl(107, 46%, 34%)
HSVhsv(107, 63%, 49%)
CMYKcmyk(49.2%, 0%, 62.7%, 50.6%)
CIE-LABlab(47.26, -35.93, 36.10)
CIE-LCHlch(47.26, 50.93, 134.86°)
OKLaboklab(53.32% -0.0986 0.0844)
OKLCHoklch(53.32% 0.13 139.4)
XYZxyz(10.0879, 16.2162, 5.2872)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E2F #6D2F7E
analogous
#687E2F #407E2F #2F7E46
triadic
#407E2F #2F407E #7E2F40
tetradic
#407E2F #2F687E #6D2F7E #7E462F
square
#407E2F #2F687E #6D2F7E #7E462F
split-complementary
#407E2F #462F7E #7E2F68
monochromatic
#13250E #29511E #407E2F #57AB40 #78C563

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407E2F#FFFFFF#000000##FFFFFF
##407E2F1.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)
#827326
Deuteranopia (green-blind)
#796E35
Tritanopia (blue-blind)
#3B7A6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e2f;
/* rgb */ color: rgb(64, 126, 47);
/* oklch */ color: oklch(53.3% 0.130 139.4);
Tailwind
colors: {
  custom: {
    50: '#7aa46b',
    500: '#407e2f',
    950: '#000000',
  },
}
SCSS
$custom: #407e2f;
$custom-light: #7aa46b;
$custom-dark: #000000;
JSON
{
  "hex": "#407e2f",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 107.089,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.53323,
    "c": 0.1298,
    "h": 139.4
  },
  "luminance": 0.16217
}

Semantic roles & 50–950 ramp

primary
#407E2F
secondary
#9B5DAC
accent
#52D5B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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