#407B2D#407B2D

#407B2D is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.5% C 0.127 H 138.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#407B2D
RGBrgb(64, 123, 45)
HSLhsl(105, 46%, 33%)
HSVhsv(105, 63%, 48%)
CMYKcmyk(48%, 0%, 63.4%, 51.8%)
CIE-LABlab(46.24, -34.84, 35.91)
CIE-LCHlch(46.24, 50.03, 134.14°)
OKLaboklab(52.48% -0.0958 0.0838)
OKLCHoklch(52.48% 0.127 138.8)
XYZxyz(9.6706, 15.4447, 4.9537)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B2D #682D7B
analogous
#677B2D #407B2D #2D7B41
triadic
#407B2D #2D407B #7B2D40
tetradic
#407B2D #2D677B #682D7B #7B412D
square
#407B2D #2D677B #682D7B #7B412D
split-complementary
#407B2D #412D7B #7B2D67
monochromatic
#11210C #294E1D #407B2D #57A83D #77C45E

Accessibility & contrast

On white

5.14
#407B2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407B2D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B2D#FFFFFF#000000##FFFFFF
##407B2D1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7124
Deuteranopia (green-blind)
#776C33
Tritanopia (blue-blind)
#3C776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407b2d;
/* rgb */ color: rgb(64, 123, 45);
/* oklch */ color: oklch(52.5% 0.127 138.8);
Tailwind
colors: {
  custom: {
    50: '#7aa269',
    500: '#407b2d',
    950: '#000000',
  },
}
SCSS
$custom: #407b2d;
$custom-light: #7aa269;
$custom-dark: #000000;
JSON
{
  "hex": "#407b2d",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 105.385,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5248,
    "c": 0.12727,
    "h": 138.8
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#407B2D
secondary
#9759AB
accent
#52D6B6
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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