#407D27#407D27

#407D27 is a mid, vivid green. Relative luminance 0.159; OKLCH L 53.0% C 0.135 H 138.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#407D27
RGBrgb(64, 125, 39)
HSLhsl(103, 52%, 32%)
HSVhsv(103, 69%, 49%)
CMYKcmyk(48.8%, 0%, 68.8%, 51%)
CIE-LABlab(46.85, -36.32, 39.35)
CIE-LCHlch(46.85, 53.56, 132.71°)
OKLaboklab(52.96% -0.1003 0.0904)
OKLCHoklch(52.96% 0.135 138)
XYZxyz(9.8138, 15.9030, 4.4715)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D27 #64277D
analogous
#6B7D27 #407D27 #277D39
triadic
#407D27 #27407D #7D2740
tetradic
#407D27 #276B7D #64277D #7D3927
square
#407D27 #276B7D #64277D #7D3927
split-complementary
#407D27 #39277D #7D276B
monochromatic
#10200A #284E18 #407D27 #58AC36 #77CA55

Accessibility & contrast

On white

5.02
#407D27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#407D27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D27
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D27#FFFFFF#000000##FFFFFF
##407D271.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721B
Deuteranopia (green-blind)
#796D2E
Tritanopia (blue-blind)
#3C796B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d27;
/* rgb */ color: rgb(64, 125, 39);
/* oklch */ color: oklch(53.0% 0.135 138.0);
Tailwind
colors: {
  custom: {
    50: '#7ba366',
    500: '#407d27',
    950: '#000000',
  },
}
SCSS
$custom: #407d27;
$custom-light: #7ba366;
$custom-dark: #000000;
JSON
{
  "hex": "#407d27",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 102.558,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52962,
    "c": 0.13498,
    "h": 138
  },
  "luminance": 0.15904
}

Semantic roles & 50–950 ramp

primary
#407D27
secondary
#9351AF
accent
#4CDCB2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D27

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

Preview Lab → · Contrast checker → · Palette generator →

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