#407B2E#407B2E

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

Color values

HEX#407B2E
RGBrgb(64, 123, 46)
HSLhsl(106, 46%, 33%)
HSVhsv(106, 63%, 48%)
CMYKcmyk(48%, 0%, 62.6%, 51.8%)
CIE-LABlab(46.25, -34.73, 35.44)
CIE-LCHlch(46.25, 49.62, 134.42°)
OKLaboklab(52.49% -0.0954 0.0829)
OKLCHoklch(52.49% 0.126 139)
XYZxyz(9.6901, 15.4525, 5.0563)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B2E #692E7B
analogous
#667B2E #407B2E #2E7B42
triadic
#407B2E #2E407B #7B2E40
tetradic
#407B2E #2E667B #692E7B #7B422E
square
#407B2E #2E667B #692E7B #7B422E
split-complementary
#407B2E #422E7B #7B2E66
monochromatic
#12220D #294E1D #407B2E #57A83F #77C360

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407B2E#FFFFFF#000000##FFFFFF
##407B2E1.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)
#7F7126
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#3B776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407b2e;
/* rgb */ color: rgb(64, 123, 46);
/* oklch */ color: oklch(52.5% 0.126 139.0);
Tailwind
colors: {
  custom: {
    50: '#7aa26a',
    500: '#407b2e',
    950: '#000000',
  },
}
SCSS
$custom: #407b2e;
$custom-light: #7aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#407b2e",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 105.974,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.1264,
    "h": 139
  },
  "luminance": 0.15453
}

Semantic roles & 50–950 ramp

primary
#407B2E
secondary
#985BAA
accent
#53D5B7
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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