#407E27#407E27

#407E27 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.2% C 0.136 H 138.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#407E27
RGBrgb(64, 126, 39)
HSLhsl(103, 53%, 32%)
HSVhsv(103, 69%, 49%)
CMYKcmyk(49.2%, 0%, 69%, 50.6%)
CIE-LABlab(47.18, -36.75, 39.71)
CIE-LCHlch(47.18, 54.11, 132.78°)
OKLaboklab(53.24% -0.1014 0.0911)
OKLCHoklch(53.24% 0.136 138.1)
XYZxyz(9.9411, 16.1575, 4.5139)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E27 #65277E
analogous
#6B7E27 #407E27 #277E3A
triadic
#407E27 #27407E #7E2740
tetradic
#407E27 #276B7E #65277E #7E3A27
square
#407E27 #276B7E #65277E #7E3A27
split-complementary
#407E27 #3A277E #7E276B
monochromatic
#11210A #284F19 #407E27 #58AD35 #77CA55

Accessibility & contrast

On white

4.96
#407E27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#407E27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E27
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E27#FFFFFF#000000##FFFFFF
##407E271.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731B
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#3C7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e27;
/* rgb */ color: rgb(64, 126, 39);
/* oklch */ color: oklch(53.2% 0.136 138.1);
Tailwind
colors: {
  custom: {
    50: '#7ba466',
    500: '#407e27',
    950: '#000000',
  },
}
SCSS
$custom: #407e27;
$custom-light: #7ba466;
$custom-dark: #000000;
JSON
{
  "hex": "#407e27",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 39
  },
  "hsl": {
    "h": 102.759,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53235,
    "c": 0.13635,
    "h": 138.1
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#407E27
secondary
#9452AF
accent
#4CDCB3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407E27

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

Preview Lab → · Contrast checker → · Palette generator →

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