#407D28#407D28

#407D28 is a mid, vivid green. Relative luminance 0.159; OKLCH L 53.0% C 0.134 H 138.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#407D28
RGBrgb(64, 125, 40)
HSLhsl(103, 52%, 32%)
HSVhsv(103, 68%, 49%)
CMYKcmyk(48.8%, 0%, 68%, 51%)
CIE-LABlab(46.86, -36.23, 38.92)
CIE-LCHlch(46.86, 53.17, 132.95°)
OKLaboklab(52.97% -0.0999 0.0896)
OKLCHoklch(52.97% 0.134 138.1)
XYZxyz(9.8306, 15.9098, 4.5599)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D28 #65287D
analogous
#6A7D28 #407D28 #287D3B
triadic
#407D28 #28407D #7D2840
tetradic
#407D28 #286A7D #65287D #7D3B28
square
#407D28 #286A7D #65287D #7D3B28
split-complementary
#407D28 #3B287D #7D286A
monochromatic
#11200A #284F19 #407D28 #58AB37 #77C956

Accessibility & contrast

On white

5.02
#407D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#407D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D28
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D28#FFFFFF#000000##FFFFFF
##407D281.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721D
Deuteranopia (green-blind)
#796D2F
Tritanopia (blue-blind)
#3C796B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d28;
/* rgb */ color: rgb(64, 125, 40);
/* oklch */ color: oklch(53.0% 0.134 138.1);
Tailwind
colors: {
  custom: {
    50: '#7aa366',
    500: '#407d28',
    950: '#000000',
  },
}
SCSS
$custom: #407d28;
$custom-light: #7aa366;
$custom-dark: #000000;
JSON
{
  "hex": "#407d28",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 103.059,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52972,
    "c": 0.1342,
    "h": 138.1
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#407D28
secondary
#9453AE
accent
#4DDBB3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D28

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

Preview Lab → · Contrast checker → · Palette generator →

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