#407E22#407E22

#407E22 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.2% C 0.140 H 137.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#407E22
RGBrgb(64, 126, 34)
HSLhsl(100, 58%, 31%)
HSVhsv(100, 73%, 49%)
CMYKcmyk(49.2%, 0%, 73%, 50.6%)
CIE-LABlab(47.14, -37.19, 41.79)
CIE-LCHlch(47.14, 55.95, 131.66°)
OKLaboklab(53.19% -0.103 0.0948)
OKLCHoklch(53.19% 0.14 137.4)
XYZxyz(9.8636, 16.1265, 4.1060)
Luminance0.1613 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E22 #60227E
analogous
#6E7E22 #407E22 #227E32
triadic
#407E22 #22407E #7E2240
tetradic
#407E22 #226E7E #60227E #7E3222
square
#407E22 #226E7E #60227E #7E3222
split-complementary
#407E22 #32227E #7E226E
monochromatic
#0F1E08 #284E15 #407E22 #58AE2F #76CF4C

Accessibility & contrast

On white

4.97
#407E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407E22
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E22#FFFFFF#000000##FFFFFF
##407E221.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#7A6E2B
Tritanopia (blue-blind)
#3C796C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e22;
/* rgb */ color: rgb(64, 126, 34);
/* oklch */ color: oklch(53.2% 0.140 137.4);
Tailwind
colors: {
  custom: {
    50: '#7ba463',
    500: '#407e22',
    950: '#000000',
  },
}
SCSS
$custom: #407e22;
$custom-light: #7ba463;
$custom-dark: #000000;
JSON
{
  "hex": "#407e22",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 100.435,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53189,
    "c": 0.13997,
    "h": 137.4
  },
  "luminance": 0.16127
}

Semantic roles & 50–950 ramp

primary
#407E22
secondary
#904BB1
accent
#47E1AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407E22

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

Preview Lab → · Contrast checker → · Palette generator →

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