#407C2E#407C2E

#407C2E is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.8% C 0.128 H 139.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#407C2E
RGBrgb(64, 124, 46)
HSLhsl(106, 46%, 33%)
HSVhsv(106, 63%, 49%)
CMYKcmyk(48.4%, 0%, 62.9%, 51.4%)
CIE-LABlab(46.58, -35.17, 35.81)
CIE-LCHlch(46.58, 50.19, 134.48°)
OKLaboklab(52.76% -0.0966 0.0837)
OKLCHoklch(52.76% 0.128 139.1)
XYZxyz(9.8148, 15.7019, 5.0978)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C2E #6A2E7C
analogous
#677C2E #407C2E #2E7C43
triadic
#407C2E #2E407C #7C2E40
tetradic
#407C2E #2E677C #6A2E7C #7C432E
square
#407C2E #2E677C #6A2E7C #7C432E
split-complementary
#407C2E #432E7C #7C2E67
monochromatic
#12230D #294F1D #407C2E #57A93F #77C460

Accessibility & contrast

On white

5.07
#407C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#407C2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C2E
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C2E#FFFFFF#000000##FFFFFF
##407C2E1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807225
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#3B786B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c2e;
/* rgb */ color: rgb(64, 124, 46);
/* oklch */ color: oklch(52.8% 0.128 139.1);
Tailwind
colors: {
  custom: {
    50: '#7aa26a',
    500: '#407c2e',
    950: '#000000',
  },
}
SCSS
$custom: #407c2e;
$custom-light: #7aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#407c2e",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 106.154,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52765,
    "c": 0.12783,
    "h": 139.1
  },
  "luminance": 0.15703
}

Semantic roles & 50–950 ramp

primary
#407C2E
secondary
#985BAB
accent
#52D6B7
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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