#407C2A#407C2A

#407C2A is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.7% C 0.131 H 138.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#407C2A
RGBrgb(64, 124, 42)
HSLhsl(104, 49%, 33%)
HSVhsv(104, 66%, 49%)
CMYKcmyk(48.4%, 0%, 66.1%, 51.4%)
CIE-LABlab(46.54, -35.60, 37.66)
CIE-LCHlch(46.54, 51.82, 133.39°)
OKLaboklab(52.72% -0.0981 0.0872)
OKLCHoklch(52.72% 0.131 138.4)
XYZxyz(9.7396, 15.6718, 4.7018)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C2A #662A7C
analogous
#697C2A #407C2A #2A7C3D
triadic
#407C2A #2A407C #7C2A40
tetradic
#407C2A #2A697C #662A7C #7C3D2A
square
#407C2A #2A697C #662A7C #7C3D2A
split-complementary
#407C2A #3D2A7C #7C2A69
monochromatic
#11210B #284E1B #407C2A #58AA39 #77C759

Accessibility & contrast

On white

5.08
#407C2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#407C2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C2A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C2A#FFFFFF#000000##FFFFFF
##407C2A1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807120
Deuteranopia (green-blind)
#786C31
Tritanopia (blue-blind)
#3C786B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c2a;
/* rgb */ color: rgb(64, 124, 42);
/* oklch */ color: oklch(52.7% 0.131 138.4);
Tailwind
colors: {
  custom: {
    50: '#7aa267',
    500: '#407c2a',
    950: '#000000',
  },
}
SCSS
$custom: #407c2a;
$custom-light: #7aa267;
$custom-dark: #000000;
JSON
{
  "hex": "#407c2a",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 103.902,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52719,
    "c": 0.13121,
    "h": 138.4
  },
  "luminance": 0.15672
}

Semantic roles & 50–950 ramp

primary
#407C2A
secondary
#9555AD
accent
#4FD9B4
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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