#407D2A#407D2A

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

Color values

HEX#407D2A
RGBrgb(64, 125, 42)
HSLhsl(104, 50%, 33%)
HSVhsv(104, 66%, 49%)
CMYKcmyk(48.8%, 0%, 66.4%, 51%)
CIE-LABlab(46.87, -36.03, 38.03)
CIE-LCHlch(46.87, 52.39, 133.45°)
OKLaboklab(52.99% -0.0992 0.088)
OKLCHoklch(52.99% 0.133 138.5)
XYZxyz(9.8655, 15.9237, 4.7438)
Luminance0.1592 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D2A #672A7D
analogous
#6A7D2A #407D2A #2A7D3D
triadic
#407D2A #2A407D #7D2A40
tetradic
#407D2A #2A6A7D #672A7D #7D3D2A
square
#407D2A #2A6A7D #672A7D #7D3D2A
split-complementary
#407D2A #3D2A7D #7D2A6A
monochromatic
#11210B #294F1B #407D2A #57AB39 #77C85A

Accessibility & contrast

On white

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

On black

4.18
#407D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407D2A#FFFFFF#000000##FFFFFF
##407D2A1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817220
Deuteranopia (green-blind)
#796D31
Tritanopia (blue-blind)
#3C796C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d2a;
/* rgb */ color: rgb(64, 125, 42);
/* oklch */ color: oklch(53.0% 0.133 138.5);
Tailwind
colors: {
  custom: {
    50: '#7aa367',
    500: '#407d2a',
    950: '#000000',
  },
}
SCSS
$custom: #407d2a;
$custom-light: #7aa367;
$custom-dark: #000000;
JSON
{
  "hex": "#407d2a",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 104.096,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52993,
    "c": 0.13261,
    "h": 138.5
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#407D2A
secondary
#9656AD
accent
#4FD9B4
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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