#407E2A#407E2A

#407E2A is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.3% C 0.134 H 138.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#407E2A
RGBrgb(64, 126, 42)
HSLhsl(104, 50%, 33%)
HSVhsv(104, 67%, 49%)
CMYKcmyk(49.2%, 0%, 66.7%, 50.6%)
CIE-LABlab(47.21, -36.46, 38.39)
CIE-LCHlch(47.21, 52.95, 133.52°)
OKLaboklab(53.27% -0.1004 0.0887)
OKLCHoklch(53.27% 0.134 138.5)
XYZxyz(9.9928, 16.1782, 4.7862)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E2A #682A7E
analogous
#6A7E2A #407E2A #2A7E3E
triadic
#407E2A #2A407E #7E2A40
tetradic
#407E2A #2A6A7E #682A7E #7E3E2A
square
#407E2A #2A6A7E #682A7E #7E3E2A
split-complementary
#407E2A #3E2A7E #7E2A6A
monochromatic
#11220B #29501B #407E2A #57AC39 #77C85A

Accessibility & contrast

On white

4.96
#407E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#407E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E2A
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E2A#FFFFFF#000000##FFFFFF
##407E2A1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827320
Deuteranopia (green-blind)
#7A6E31
Tritanopia (blue-blind)
#3B7A6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e2a;
/* rgb */ color: rgb(64, 126, 42);
/* oklch */ color: oklch(53.3% 0.134 138.5);
Tailwind
colors: {
  custom: {
    50: '#7aa468',
    500: '#407e2a',
    950: '#000000',
  },
}
SCSS
$custom: #407e2a;
$custom-light: #7aa468;
$custom-dark: #000000;
JSON
{
  "hex": "#407e2a",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 104.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53266,
    "c": 0.134,
    "h": 138.5
  },
  "luminance": 0.16179
}

Semantic roles & 50–950 ramp

primary
#407E2A
secondary
#9756AE
accent
#4EDAB5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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