#407B2A#407B2A

#407B2A is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.4% C 0.130 H 138.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#407B2A
RGBrgb(64, 123, 42)
HSLhsl(104, 49%, 32%)
HSVhsv(104, 66%, 48%)
CMYKcmyk(48%, 0%, 65.9%, 51.8%)
CIE-LABlab(46.21, -35.16, 37.29)
CIE-LCHlch(46.21, 51.26, 133.31°)
OKLaboklab(52.45% -0.0969 0.0864)
OKLCHoklch(52.45% 0.13 138.3)
XYZxyz(9.6149, 15.4224, 4.6602)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B2A #652A7B
analogous
#687B2A #407B2A #2A7B3D
triadic
#407B2A #2A407B #7B2A40
tetradic
#407B2A #2A687B #652A7B #7B3D2A
square
#407B2A #2A687B #652A7B #7B3D2A
split-complementary
#407B2A #3D2A7B #7B2A68
monochromatic
#11200B #284D1A #407B2A #58A93A #77C659

Accessibility & contrast

On white

5.14
#407B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#407B2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B2A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B2A#FFFFFF#000000##FFFFFF
##407B2A1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7120
Deuteranopia (green-blind)
#776C31
Tritanopia (blue-blind)
#3C776A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b2a;
/* rgb */ color: rgb(64, 123, 42);
/* oklch */ color: oklch(52.4% 0.130 138.3);
Tailwind
colors: {
  custom: {
    50: '#7aa267',
    500: '#407b2a',
    950: '#000000',
  },
}
SCSS
$custom: #407b2a;
$custom-light: #7aa267;
$custom-dark: #000000;
JSON
{
  "hex": "#407b2a",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 103.704,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52446,
    "c": 0.12981,
    "h": 138.3
  },
  "luminance": 0.15423
}

Semantic roles & 50–950 ramp

primary
#407B2A
secondary
#9455AC
accent
#4FD9B3
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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