#407F2C#407F2C

#407F2C is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.6% C 0.134 H 139.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#407F2C
RGBrgb(64, 127, 44)
HSLhsl(106, 49%, 34%)
HSVhsv(106, 65%, 50%)
CMYKcmyk(49.6%, 0%, 65.4%, 50.2%)
CIE-LABlab(47.56, -36.68, 37.86)
CIE-LCHlch(47.56, 52.72, 134.10°)
OKLaboklab(53.56% -0.1009 0.0878)
OKLCHoklch(53.56% 0.134 139)
XYZxyz(10.1580, 16.4499, 5.0223)
Luminance0.1645 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F2C #6B2C7F
analogous
#697F2C #407F2C #2C7F41
triadic
#407F2C #2C407F #7F2C40
tetradic
#407F2C #2C697F #6B2C7F #7F412C
square
#407F2C #2C697F #6B2C7F #7F412C
split-complementary
#407F2C #412C7F #7F2C69
monochromatic
#12240D #29521C #407F2C #57AC3C #77C75E

Accessibility & contrast

On white

4.89
#407F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#407F2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F2C
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F2C#FFFFFF#000000##FFFFFF
##407F2C1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837422
Deuteranopia (green-blind)
#7A6F33
Tritanopia (blue-blind)
#3B7B6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f2c;
/* rgb */ color: rgb(64, 127, 44);
/* oklch */ color: oklch(53.6% 0.134 139.0);
Tailwind
colors: {
  custom: {
    50: '#7ba569',
    500: '#407f2c',
    950: '#000000',
  },
}
SCSS
$custom: #407f2c;
$custom-light: #7ba569;
$custom-dark: #000000;
JSON
{
  "hex": "#407f2c",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 105.542,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53561,
    "c": 0.13375,
    "h": 139
  },
  "luminance": 0.16451
}

Semantic roles & 50–950 ramp

primary
#407F2C
secondary
#9959AD
accent
#50D8B7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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