#407E31#407E31

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

Color values

HEX#407E31
RGBrgb(64, 126, 49)
HSLhsl(108, 44%, 34%)
HSVhsv(108, 61%, 49%)
CMYKcmyk(49.2%, 0%, 61.1%, 50.6%)
CIE-LABlab(47.28, -35.70, 35.15)
CIE-LCHlch(47.28, 50.10, 135.44°)
OKLaboklab(53.35% -0.0979 0.0826)
OKLCHoklch(53.35% 0.128 139.8)
XYZxyz(10.1292, 16.2327, 5.5046)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E31 #6F317E
analogous
#677E31 #407E31 #317E49
triadic
#407E31 #31407E #7E3140
tetradic
#407E31 #31677E #6F317E #7E4931
square
#407E31 #31677E #6F317E #7E4931
split-complementary
#407E31 #49317E #7E3167
monochromatic
#13260F #2A5220 #407E31 #56AA42 #78C366

Accessibility & contrast

On white

4.95
#407E31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#407E31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E31
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E31#FFFFFF#000000##FFFFFF
##407E311.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817329
Deuteranopia (green-blind)
#796E37
Tritanopia (blue-blind)
#3A7A6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e31;
/* rgb */ color: rgb(64, 126, 49);
/* oklch */ color: oklch(53.3% 0.128 139.8);
Tailwind
colors: {
  custom: {
    50: '#7aa46c',
    500: '#407e31',
    950: '#000000',
  },
}
SCSS
$custom: #407e31;
$custom-light: #7aa46c;
$custom-dark: #000000;
JSON
{
  "hex": "#407e31",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 108.312,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.53347,
    "c": 0.12803,
    "h": 139.8
  },
  "luminance": 0.16233
}

Semantic roles & 50–950 ramp

primary
#407E31
secondary
#9C60AB
accent
#54D4BB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407E31

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

Preview Lab → · Contrast checker → · Palette generator →

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