#407F4E#407F4E

#407F4E is a mid, moderate green. Relative luminance 0.168; OKLCH L 54.1% C 0.100 H 149.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#407F4E
RGBrgb(64, 127, 78)
HSLhsl(133, 33%, 37%)
HSVhsv(133, 50%, 50%)
CMYKcmyk(49.6%, 0%, 38.6%, 50.2%)
CIE-LABlab(48.03, -31.75, 20.56)
CIE-LCHlch(48.03, 37.83, 147.08°)
OKLaboklab(54.1% -0.0863 0.0513)
OKLCHoklch(54.1% 0.1 149.3)
XYZxyz(11.0782, 16.8180, 9.8687)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F4E #7F4071
analogous
#527F40 #407F4E #407F6D
triadic
#407F4E #4E407F #7F4E40
tetradic
#407F4E #40527F #7F4071 #7F6D40
square
#407F4E #40527F #7F4071 #7F6D40
split-complementary
#407F4E #6D407F #7F4052
monochromatic
#172E1C #2B5635 #407F4E #55A867 #7CBD8B

Accessibility & contrast

On white

4.81
#407F4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#407F4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F4E
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F4E#FFFFFF#000000##FFFFFF
##407F4E1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80764B
Deuteranopia (green-blind)
#777051
Tritanopia (blue-blind)
#347D73
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #407f4e;
/* rgb */ color: rgb(64, 127, 78);
/* oklch */ color: oklch(54.1% 0.100 149.3);
Tailwind
colors: {
  custom: {
    50: '#79a480',
    500: '#407f4e',
    950: '#000000',
  },
}
SCSS
$custom: #407f4e;
$custom-light: #79a480;
$custom-dark: #000000;
JSON
{
  "hex": "#407f4e",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 78
  },
  "hsl": {
    "h": 133.333,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.10038,
    "h": 149.3
  },
  "luminance": 0.16819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #407F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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