#407A2F#407A2F

#407A2F is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.2% C 0.124 H 139.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#407A2F
RGBrgb(64, 122, 47)
HSLhsl(106, 44%, 33%)
HSVhsv(106, 61%, 48%)
CMYKcmyk(47.5%, 0%, 61.5%, 52.2%)
CIE-LABlab(45.93, -34.18, 34.58)
CIE-LCHlch(45.93, 48.62, 134.66°)
OKLaboklab(52.23% -0.0939 0.0811)
OKLCHoklch(52.23% 0.124 139.2)
XYZxyz(9.5866, 15.2137, 5.1202)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A2F #692F7A
analogous
#657A2F #407A2F #2F7A43
triadic
#407A2F #2F407A #7A2F40
tetradic
#407A2F #2F657A #692F7A #7A432F
square
#407A2F #2F657A #692F7A #7A432F
split-complementary
#407A2F #432F7A #7A2F65
monochromatic
#12220D #294E1E #407A2F #57A640 #77C261

Accessibility & contrast

On white

5.19
#407A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#407A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A2F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A2F#FFFFFF#000000##FFFFFF
##407A2F1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7027
Deuteranopia (green-blind)
#766B35
Tritanopia (blue-blind)
#3B766A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a2f;
/* rgb */ color: rgb(64, 122, 47);
/* oklch */ color: oklch(52.2% 0.124 139.2);
Tailwind
colors: {
  custom: {
    50: '#7aa16a',
    500: '#407a2f',
    950: '#000000',
  },
}
SCSS
$custom: #407a2f;
$custom-light: #7aa16a;
$custom-dark: #000000;
JSON
{
  "hex": "#407a2f",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 106.4,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52231,
    "c": 0.12407,
    "h": 139.2
  },
  "luminance": 0.15214
}

Semantic roles & 50–950 ramp

primary
#407A2F
secondary
#985CA9
accent
#54D4B7
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090F07
muted
#7B7E7A

Preview Lab

Preview with #407A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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