#407E4E#407E4E

#407E4E is a mid, moderate green. Relative luminance 0.166; OKLCH L 53.8% C 0.099 H 149.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#407E4E
RGBrgb(64, 126, 78)
HSLhsl(134, 33%, 37%)
HSVhsv(134, 49%, 49%)
CMYKcmyk(49.2%, 0%, 38.1%, 50.6%)
CIE-LABlab(47.70, -31.29, 20.12)
CIE-LCHlch(47.70, 37.20, 147.25°)
OKLaboklab(53.83% -0.085 0.0503)
OKLCHoklch(53.83% 0.099 149.4)
XYZxyz(10.9497, 16.5609, 9.8258)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E4E #7E4070
analogous
#517E40 #407E4E #407E6D
triadic
#407E4E #4E407E #7E4E40
tetradic
#407E4E #40517E #7E4070 #7E6D40
square
#407E4E #40517E #7E4070 #7E6D40
split-complementary
#407E4E #6D407E #7E4051
monochromatic
#172D1C #2B5535 #407E4E #55A767 #7CBC8B

Accessibility & contrast

On white

4.87
#407E4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#407E4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E4E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E4E#FFFFFF#000000##FFFFFF
##407E4E1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754B
Deuteranopia (green-blind)
#766F51
Tritanopia (blue-blind)
#347C72
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407e4e;
/* rgb */ color: rgb(64, 126, 78);
/* oklch */ color: oklch(53.8% 0.099 149.4);
Tailwind
colors: {
  custom: {
    50: '#79a480',
    500: '#407e4e',
    950: '#000000',
  },
}
SCSS
$custom: #407e4e;
$custom-light: #79a480;
$custom-dark: #000000;
JSON
{
  "hex": "#407e4e",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 78
  },
  "hsl": {
    "h": 133.548,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.53832,
    "c": 0.09879,
    "h": 149.4
  },
  "luminance": 0.16562
}

Semantic roles & 50–950 ramp

primary
#407E4E
secondary
#A7739B
accent
#5FB1C9
background
#F7FAF7
surface
#EEF4EE
border
#C9CEC9
text
#090F0A
muted
#7B7F7C

Preview Lab

Preview with #407E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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