#407B27#407B27

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

Color values

HEX#407B27
RGBrgb(64, 123, 39)
HSLhsl(102, 52%, 32%)
HSVhsv(102, 68%, 48%)
CMYKcmyk(48%, 0%, 68.3%, 51.8%)
CIE-LABlab(46.18, -35.46, 38.64)
CIE-LCHlch(46.18, 52.44, 132.55°)
OKLaboklab(52.41% -0.0979 0.0889)
OKLCHoklch(52.41% 0.132 137.8)
XYZxyz(9.5632, 15.4018, 4.3880)
Luminance0.1540 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B27 #62277B
analogous
#6A7B27 #407B27 #277B38
triadic
#407B27 #27407B #7B2740
tetradic
#407B27 #276A7B #62277B #7B3827
square
#407B27 #276A7B #62277B #7B3827
split-complementary
#407B27 #38277B #7B276A
monochromatic
#101E0A #284D18 #407B27 #58A936 #77C954

Accessibility & contrast

On white

5.15
#407B27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407B27
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B27#FFFFFF#000000##FFFFFF
##407B271.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407b27;
/* rgb */ color: rgb(64, 123, 39);
/* oklch */ color: oklch(52.4% 0.132 137.8);
Tailwind
colors: {
  custom: {
    50: '#7aa265',
    500: '#407b27',
    950: '#000000',
  },
}
SCSS
$custom: #407b27;
$custom-light: #7aa265;
$custom-dark: #000000;
JSON
{
  "hex": "#407b27",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 39
  },
  "hsl": {
    "h": 102.143,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52414,
    "c": 0.13223,
    "h": 137.8
  },
  "luminance": 0.15402
}

Semantic roles & 50–950 ramp

primary
#407B27
secondary
#9251AD
accent
#4CDBB1
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407B27

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

Preview Lab → · Contrast checker → · Palette generator →

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