#407C2F#407C2F

#407C2F is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.8% C 0.127 H 139.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#407C2F
RGBrgb(64, 124, 47)
HSLhsl(107, 45%, 34%)
HSVhsv(107, 62%, 49%)
CMYKcmyk(48.4%, 0%, 62.1%, 51.4%)
CIE-LABlab(46.59, -35.06, 35.34)
CIE-LCHlch(46.59, 49.78, 134.77°)
OKLaboklab(52.78% -0.0962 0.0828)
OKLCHoklch(52.78% 0.127 139.3)
XYZxyz(9.8347, 15.7099, 5.2029)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C2F #6B2F7C
analogous
#667C2F #407C2F #2F7C44
triadic
#407C2F #2F407C #7C2F40
tetradic
#407C2F #2F667C #6B2F7C #7C442F
square
#407C2F #2F667C #6B2F7C #7C442F
split-complementary
#407C2F #442F7C #7C2F66
monochromatic
#12230D #29501E #407C2F #57A840 #77C362

Accessibility & contrast

On white

5.07
#407C2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#407C2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C2F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C2F#FFFFFF#000000##FFFFFF
##407C2F1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807227
Deuteranopia (green-blind)
#776C35
Tritanopia (blue-blind)
#3B786B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c2f;
/* rgb */ color: rgb(64, 124, 47);
/* oklch */ color: oklch(52.8% 0.127 139.3);
Tailwind
colors: {
  custom: {
    50: '#7aa26a',
    500: '#407c2f',
    950: '#000000',
  },
}
SCSS
$custom: #407c2f;
$custom-light: #7aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#407c2f",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 106.753,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.52777,
    "c": 0.12695,
    "h": 139.3
  },
  "luminance": 0.15711
}

Semantic roles & 50–950 ramp

primary
#407C2F
secondary
#995CAA
accent
#53D5B8
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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