#407B2F#407B2F

#407B2F is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.5% C 0.126 H 139.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#407B2F
RGBrgb(64, 123, 47)
HSLhsl(107, 45%, 33%)
HSVhsv(107, 62%, 48%)
CMYKcmyk(48%, 0%, 61.8%, 51.8%)
CIE-LABlab(46.26, -34.62, 34.96)
CIE-LCHlch(46.26, 49.20, 134.72°)
OKLaboklab(52.5% -0.0951 0.082)
OKLCHoklch(52.5% 0.126 139.2)
XYZxyz(9.7100, 15.4605, 5.1613)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B2F #6A2F7B
analogous
#667B2F #407B2F #2F7B44
triadic
#407B2F #2F407B #7B2F40
tetradic
#407B2F #2F667B #6A2F7B #7B442F
square
#407B2F #2F667B #6A2F7B #7B442F
split-complementary
#407B2F #442F7B #7B2F66
monochromatic
#12220D #294F1E #407B2F #57A740 #77C362

Accessibility & contrast

On white

5.13
#407B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#407B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B2F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B2F#FFFFFF#000000##FFFFFF
##407B2F1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7127
Deuteranopia (green-blind)
#776C35
Tritanopia (blue-blind)
#3B776B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407b2f;
/* rgb */ color: rgb(64, 123, 47);
/* oklch */ color: oklch(52.5% 0.126 139.2);
Tailwind
colors: {
  custom: {
    50: '#7aa26a',
    500: '#407b2f',
    950: '#000000',
  },
}
SCSS
$custom: #407b2f;
$custom-light: #7aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#407b2f",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 106.579,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52504,
    "c": 0.12551,
    "h": 139.2
  },
  "luminance": 0.15461
}

Semantic roles & 50–950 ramp

primary
#407B2F
secondary
#985CAA
accent
#53D4B8
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #407B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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