#407D4E#407D4E

#407D4E is a mid, moderate green. Relative luminance 0.163; OKLCH L 53.6% C 0.097 H 149.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#407D4E
RGBrgb(64, 125, 78)
HSLhsl(134, 32%, 37%)
HSVhsv(134, 49%, 49%)
CMYKcmyk(48.8%, 0%, 37.6%, 51%)
CIE-LABlab(47.37, -30.82, 19.69)
CIE-LCHlch(47.37, 36.57, 147.43°)
OKLaboklab(53.56% -0.0838 0.0492)
OKLCHoklch(53.56% 0.097 149.6)
XYZxyz(10.8224, 16.3065, 9.7834)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D4E #7D406F
analogous
#517D40 #407D4E #407D6C
triadic
#407D4E #4E407D #7D4E40
tetradic
#407D4E #40517D #7D406F #7D6C40
square
#407D4E #40517D #7D406F #7D6C40
split-complementary
#407D4E #6C407D #7D4051
monochromatic
#172C1B #2B5535 #407D4E #55A567 #7CBC8A

Accessibility & contrast

On white

4.93
#407D4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#407D4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D4E
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D4E#FFFFFF#000000##FFFFFF
##407D4E1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E744B
Deuteranopia (green-blind)
#756E51
Tritanopia (blue-blind)
#357B71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407d4e;
/* rgb */ color: rgb(64, 125, 78);
/* oklch */ color: oklch(53.6% 0.097 149.6);
Tailwind
colors: {
  custom: {
    50: '#79a380',
    500: '#407d4e',
    950: '#000000',
  },
}
SCSS
$custom: #407d4e;
$custom-light: #79a380;
$custom-dark: #000000;
JSON
{
  "hex": "#407d4e",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 78
  },
  "hsl": {
    "h": 133.77,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.53564,
    "c": 0.09719,
    "h": 149.6
  },
  "luminance": 0.16307
}

Semantic roles & 50–950 ramp

primary
#407D4E
secondary
#A6739A
accent
#5FB0C8
background
#F7FAF7
surface
#EEF4EE
border
#C9CEC9
text
#090F0A
muted
#7B7F7C

Preview Lab

Preview with #407D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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