#407A2E#407A2E

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

Color values

HEX#407A2E
RGBrgb(64, 122, 46)
HSLhsl(106, 45%, 33%)
HSVhsv(106, 62%, 48%)
CMYKcmyk(47.5%, 0%, 62.3%, 52.2%)
CIE-LABlab(45.91, -34.29, 35.06)
CIE-LCHlch(45.91, 49.04, 134.37°)
OKLaboklab(52.22% -0.0942 0.0821)
OKLCHoklch(52.22% 0.125 138.9)
XYZxyz(9.5667, 15.2057, 5.0151)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A2E #682E7A
analogous
#667A2E #407A2E #2E7A42
triadic
#407A2E #2E407A #7A2E40
tetradic
#407A2E #2E667A #682E7A #7A422E
square
#407A2E #2E667A #682E7A #7A422E
split-complementary
#407A2E #422E7A #7A2E66
monochromatic
#11210C #294E1D #407A2E #57A63F #77C360

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407A2E#FFFFFF#000000##FFFFFF
##407A2E1.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)
#7E7026
Deuteranopia (green-blind)
#766B34
Tritanopia (blue-blind)
#3C766A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a2e;
/* rgb */ color: rgb(64, 122, 46);
/* oklch */ color: oklch(52.2% 0.125 138.9);
Tailwind
colors: {
  custom: {
    50: '#7aa16a',
    500: '#407a2e',
    950: '#000000',
  },
}
SCSS
$custom: #407a2e;
$custom-light: #7aa16a;
$custom-dark: #000000;
JSON
{
  "hex": "#407a2e",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 105.789,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.12497,
    "h": 138.9
  },
  "luminance": 0.15206
}

Semantic roles & 50–950 ramp

primary
#407A2E
secondary
#975AAA
accent
#53D5B6
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F06
muted
#7B7E7A

Preview Lab

Preview with #407A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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