#407D2B#407D2B

#407D2B is a mid, vivid green. Relative luminance 0.159; OKLCH L 53.0% C 0.132 H 138.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#407D2B
RGBrgb(64, 125, 43)
HSLhsl(105, 49%, 33%)
HSVhsv(105, 66%, 49%)
CMYKcmyk(48.8%, 0%, 65.6%, 51%)
CIE-LABlab(46.88, -35.93, 37.58)
CIE-LCHlch(46.88, 51.99, 133.71°)
OKLaboklab(53% -0.0989 0.0871)
OKLCHoklch(53% 0.132 138.6)
XYZxyz(9.8837, 15.9310, 4.8392)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D2B #682B7D
analogous
#697D2B #407D2B #2B7D3F
triadic
#407D2B #2B407D #7D2B40
tetradic
#407D2B #2B697D #682B7D #7D3F2B
square
#407D2B #2B697D #682B7D #7D3F2B
split-complementary
#407D2B #3F2B7D #7D2B69
monochromatic
#11220C #294F1B #407D2B #57AB3B #77C75C

Accessibility & contrast

On white

5.02
#407D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#407D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D2B
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D2B#FFFFFF#000000##FFFFFF
##407D2B1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817221
Deuteranopia (green-blind)
#796D32
Tritanopia (blue-blind)
#3B796C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d2b;
/* rgb */ color: rgb(64, 125, 43);
/* oklch */ color: oklch(53.0% 0.132 138.6);
Tailwind
colors: {
  custom: {
    50: '#7aa368',
    500: '#407d2b',
    950: '#000000',
  },
}
SCSS
$custom: #407d2b;
$custom-light: #7aa368;
$custom-dark: #000000;
JSON
{
  "hex": "#407d2b",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 104.634,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53004,
    "c": 0.13179,
    "h": 138.6
  },
  "luminance": 0.15932
}

Semantic roles & 50–950 ramp

primary
#407D2B
secondary
#9757AD
accent
#4FD8B5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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