#407D2F#407D2F

#407D2F is a mid, vivid green. Relative luminance 0.160; OKLCH L 53.0% C 0.128 H 139.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#407D2F
RGBrgb(64, 125, 47)
HSLhsl(107, 45%, 34%)
HSVhsv(107, 62%, 49%)
CMYKcmyk(48.8%, 0%, 62.4%, 51%)
CIE-LABlab(46.92, -35.49, 35.72)
CIE-LCHlch(46.92, 50.36, 134.82°)
OKLaboklab(53.05% -0.0974 0.0836)
OKLCHoklch(53.05% 0.128 139.4)
XYZxyz(9.9607, 15.9618, 5.2448)
Luminance0.1596 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D2F #6C2F7D
analogous
#677D2F #407D2F #2F7D45
triadic
#407D2F #2F407D #7D2F40
tetradic
#407D2F #2F677D #6C2F7D #7D452F
square
#407D2F #2F677D #6C2F7D #7D452F
split-complementary
#407D2F #452F7D #7D2F67
monochromatic
#12240E #29511E #407D2F #57A940 #78C462

Accessibility & contrast

On white

5.01
#407D2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407D2F
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D2F#FFFFFF#000000##FFFFFF
##407D2F1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817327
Deuteranopia (green-blind)
#786D35
Tritanopia (blue-blind)
#3B796C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d2f;
/* rgb */ color: rgb(64, 125, 47);
/* oklch */ color: oklch(53.0% 0.128 139.4);
Tailwind
colors: {
  custom: {
    50: '#7aa36b',
    500: '#407d2f',
    950: '#000000',
  },
}
SCSS
$custom: #407d2f;
$custom-light: #7aa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#407d2f",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 106.923,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5305,
    "c": 0.12838,
    "h": 139.4
  },
  "luminance": 0.15962
}

Semantic roles & 50–950 ramp

primary
#407D2F
secondary
#9A5DAB
accent
#53D5B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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