#407A38#407A38

#407A38 is a mid, moderate green. Relative luminance 0.153; OKLCH L 52.4% C 0.116 H 141.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#407A38
RGBrgb(64, 122, 56)
HSLhsl(113, 37%, 35%)
HSVhsv(113, 54%, 48%)
CMYKcmyk(47.5%, 0%, 54.1%, 52.2%)
CIE-LABlab(46.03, -33.03, 30.11)
CIE-LCHlch(46.03, 44.69, 137.65°)
OKLaboklab(52.36% -0.0902 0.0722)
OKLCHoklch(52.36% 0.116 141.3)
XYZxyz(9.7873, 15.2939, 6.1769)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A38 #72387A
analogous
#617A38 #407A38 #387A51
triadic
#407A38 #38407A #7A3840
tetradic
#407A38 #38617A #72387A #7A5138
square
#407A38 #38617A #72387A #7A5138
split-complementary
#407A38 #51387A #7A3861
monochromatic
#142611 #2A5025 #407A38 #56A44B #79BD6F

Accessibility & contrast

On white

5.17
#407A38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#407A38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A38
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A38#FFFFFF#000000##FFFFFF
##407A381.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7032
Deuteranopia (green-blind)
#756B3D
Tritanopia (blue-blind)
#3A776B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a38;
/* rgb */ color: rgb(64, 122, 56);
/* oklch */ color: oklch(52.4% 0.116 141.3);
Tailwind
colors: {
  custom: {
    50: '#79a170',
    500: '#407a38',
    950: '#000000',
  },
}
SCSS
$custom: #407a38;
$custom-light: #79a170;
$custom-dark: #000000;
JSON
{
  "hex": "#407a38",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 56
  },
  "hsl": {
    "h": 112.727,
    "s": 37.079,
    "l": 34.902
  },
  "oklch": {
    "l": 0.52355,
    "c": 0.11552,
    "h": 141.3
  },
  "luminance": 0.15295
}

Semantic roles & 50–950 ramp

primary
#407A38
secondary
#9F68A6
accent
#5BCDBF
background
#F7F9F6
surface
#EEF2EC
border
#C9CCC7
text
#090F07
muted
#7B7E7A

Preview Lab

Preview with #407A38

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

Preview Lab → · Contrast checker → · Palette generator →

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