#407A2D#407A2D

#407A2D is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.2% C 0.126 H 138.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#407A2D
RGBrgb(64, 122, 45)
HSLhsl(105, 46%, 33%)
HSVhsv(105, 63%, 48%)
CMYKcmyk(47.5%, 0%, 63.1%, 52.2%)
CIE-LABlab(45.90, -34.40, 35.53)
CIE-LCHlch(45.90, 49.46, 134.08°)
OKLaboklab(52.21% -0.0946 0.083)
OKLCHoklch(52.21% 0.126 138.8)
XYZxyz(9.5472, 15.1979, 4.9125)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A2D #672D7A
analogous
#667A2D #407A2D #2D7A40
triadic
#407A2D #2D407A #7A2D40
tetradic
#407A2D #2D667A #672D7A #7A402D
square
#407A2D #2D667A #672D7A #7A402D
split-complementary
#407A2D #402D7A #7A2D66
monochromatic
#11210C #294D1D #407A2D #57A73D #77C45E

Accessibility & contrast

On white

5.20
#407A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#407A2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A2D
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A2D#FFFFFF#000000##FFFFFF
##407A2D1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7024
Deuteranopia (green-blind)
#766B33
Tritanopia (blue-blind)
#3C766A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a2d;
/* rgb */ color: rgb(64, 122, 45);
/* oklch */ color: oklch(52.2% 0.126 138.8);
Tailwind
colors: {
  custom: {
    50: '#7aa169',
    500: '#407a2d',
    950: '#000000',
  },
}
SCSS
$custom: #407a2d;
$custom-light: #7aa169;
$custom-dark: #000000;
JSON
{
  "hex": "#407a2d",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 105.195,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52207,
    "c": 0.12584,
    "h": 138.8
  },
  "luminance": 0.15199
}

Semantic roles & 50–950 ramp

primary
#407A2D
secondary
#9659AA
accent
#52D6B5
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #407A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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