#407F2B#407F2B

#407F2B is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.5% C 0.135 H 138.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#407F2B
RGBrgb(64, 127, 43)
HSLhsl(105, 49%, 33%)
HSVhsv(105, 66%, 50%)
CMYKcmyk(49.6%, 0%, 66.1%, 50.2%)
CIE-LABlab(47.55, -36.79, 38.31)
CIE-LCHlch(47.55, 53.11, 133.84°)
OKLaboklab(53.55% -0.1012 0.0887)
OKLCHoklch(53.55% 0.135 138.8)
XYZxyz(10.1394, 16.4424, 4.9245)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F2B #6A2B7F
analogous
#6A7F2B #407F2B #2B7F40
triadic
#407F2B #2B407F #7F2B40
tetradic
#407F2B #2B6A7F #6A2B7F #7F402B
square
#407F2B #2B6A7F #6A2B7F #7F402B
split-complementary
#407F2B #402B7F #7F2B6A
monochromatic
#12240C #29511C #407F2B #57AD3A #77C85C

Accessibility & contrast

On white

4.90
#407F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407F2B
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F2B#FFFFFF#000000##FFFFFF
##407F2B1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837421
Deuteranopia (green-blind)
#7A6F32
Tritanopia (blue-blind)
#3B7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f2b;
/* rgb */ color: rgb(64, 127, 43);
/* oklch */ color: oklch(53.5% 0.135 138.8);
Tailwind
colors: {
  custom: {
    50: '#7ba568',
    500: '#407f2b',
    950: '#000000',
  },
}
SCSS
$custom: #407f2b;
$custom-light: #7ba568;
$custom-dark: #000000;
JSON
{
  "hex": "#407f2b",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 105,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5355,
    "c": 0.13457,
    "h": 138.8
  },
  "luminance": 0.16443
}

Semantic roles & 50–950 ramp

primary
#407F2B
secondary
#9858AE
accent
#4FD9B6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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