#407A2B#407A2B

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

Color values

HEX#407A2B
RGBrgb(64, 122, 43)
HSLhsl(104, 48%, 32%)
HSVhsv(104, 65%, 48%)
CMYKcmyk(47.5%, 0%, 64.8%, 52.2%)
CIE-LABlab(45.88, -34.62, 36.47)
CIE-LCHlch(45.88, 50.28, 133.51°)
OKLaboklab(52.18% -0.0953 0.0848)
OKLCHoklch(52.18% 0.128 138.4)
XYZxyz(9.5096, 15.1829, 4.7145)
Luminance0.1518 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A2B #652B7A
analogous
#677A2B #407A2B #2B7A3E
triadic
#407A2B #2B407A #7A2B40
tetradic
#407A2B #2B677A #652B7A #7A3E2B
square
#407A2B #2B677A #652B7A #7A3E2B
split-complementary
#407A2B #3E2B7A #7A2B67
monochromatic
#111F0B #284D1B #407A2B #58A73B #77C55A

Accessibility & contrast

On white

5.20
#407A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407A2B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A2B#FFFFFF#000000##FFFFFF
##407A2B1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7022
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#3C7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a2b;
/* rgb */ color: rgb(64, 122, 43);
/* oklch */ color: oklch(52.2% 0.128 138.4);
Tailwind
colors: {
  custom: {
    50: '#7aa168',
    500: '#407a2b',
    950: '#000000',
  },
}
SCSS
$custom: #407a2b;
$custom-light: #7aa168;
$custom-dark: #000000;
JSON
{
  "hex": "#407a2b",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 104.051,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52183,
    "c": 0.12756,
    "h": 138.4
  },
  "luminance": 0.15183
}

Semantic roles & 50–950 ramp

primary
#407A2B
secondary
#9456AB
accent
#50D7B4
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0F06
muted
#7C7E7A

Preview Lab

Preview with #407A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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