#407F2A#407F2A

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

Color values

HEX#407F2A
RGBrgb(64, 127, 42)
HSLhsl(104, 50%, 33%)
HSVhsv(104, 67%, 50%)
CMYKcmyk(49.6%, 0%, 66.9%, 50.2%)
CIE-LABlab(47.54, -36.89, 38.76)
CIE-LCHlch(47.54, 53.51, 133.58°)
OKLaboklab(53.54% -0.1016 0.0895)
OKLCHoklch(53.54% 0.135 138.6)
XYZxyz(10.1213, 16.4352, 4.8290)
Luminance0.1644 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F2A #692A7F
analogous
#6A7F2A #407F2A #2A7F3F
triadic
#407F2A #2A407F #7F2A40
tetradic
#407F2A #2A6A7F #692A7F #7F3F2A
square
#407F2A #2A6A7F #692A7F #7F3F2A
split-complementary
#407F2A #3F2A7F #7F2A6A
monochromatic
#12230C #29511B #407F2A #57AD39 #77C95B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F2A#FFFFFF#000000##FFFFFF
##407F2A1.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)
#83741F
Deuteranopia (green-blind)
#7A6F31
Tritanopia (blue-blind)
#3B7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f2a;
/* rgb */ color: rgb(64, 127, 42);
/* oklch */ color: oklch(53.5% 0.135 138.6);
Tailwind
colors: {
  custom: {
    50: '#7ba568',
    500: '#407f2a',
    950: '#000000',
  },
}
SCSS
$custom: #407f2a;
$custom-light: #7ba568;
$custom-dark: #000000;
JSON
{
  "hex": "#407f2a",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 104.471,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53539,
    "c": 0.13538,
    "h": 138.6
  },
  "luminance": 0.16436
}

Semantic roles & 50–950 ramp

primary
#407F2A
secondary
#9857AE
accent
#4EDAB6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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