#407D2E#407D2E

#407D2E is a mid, vivid green. Relative luminance 0.160; OKLCH L 53.0% C 0.129 H 139.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#407D2E
RGBrgb(64, 125, 46)
HSLhsl(106, 46%, 34%)
HSVhsv(106, 63%, 49%)
CMYKcmyk(48.8%, 0%, 63.2%, 51%)
CIE-LABlab(46.91, -35.61, 36.19)
CIE-LCHlch(46.91, 50.77, 134.53°)
OKLaboklab(53.04% -0.0978 0.0845)
OKLCHoklch(53.04% 0.129 139.2)
XYZxyz(9.9407, 15.9538, 5.1398)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D2E #6B2E7D
analogous
#677D2E #407D2E #2E7D43
triadic
#407D2E #2E407D #7D2E40
tetradic
#407D2E #2E677D #6B2E7D #7D432E
square
#407D2E #2E677D #6B2E7D #7D432E
split-complementary
#407D2E #432E7D #7D2E67
monochromatic
#12240D #29501E #407D2E #57AA3E #77C561

Accessibility & contrast

On white

5.01
#407D2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#407D2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D2E
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D2E#FFFFFF#000000##FFFFFF
##407D2E1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817225
Deuteranopia (green-blind)
#786D34
Tritanopia (blue-blind)
#3B796C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d2e;
/* rgb */ color: rgb(64, 125, 46);
/* oklch */ color: oklch(53.0% 0.129 139.2);
Tailwind
colors: {
  custom: {
    50: '#7aa36a',
    500: '#407d2e',
    950: '#000000',
  },
}
SCSS
$custom: #407d2e;
$custom-light: #7aa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#407d2e",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 106.329,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53038,
    "c": 0.12925,
    "h": 139.2
  },
  "luminance": 0.15954
}

Semantic roles & 50–950 ramp

primary
#407D2E
secondary
#995BAB
accent
#52D6B8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #407D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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