#40872F#40872F

#40872F is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.8% C 0.142 H 140.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#40872F
RGBrgb(64, 135, 47)
HSLhsl(108, 48%, 36%)
HSVhsv(108, 65%, 53%)
CMYKcmyk(52.6%, 0%, 65.2%, 47.1%)
CIE-LABlab(50.24, -39.74, 39.45)
CIE-LCHlch(50.24, 55.99, 135.21°)
OKLaboklab(55.78% -0.109 0.0915)
OKLCHoklch(55.78% 0.142 140)
XYZxyz(11.2909, 18.6223, 5.6883)
Luminance0.1862 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40872F #762F87
analogous
#6C872F #40872F #2F874A
triadic
#40872F #2F4087 #872F40
tetradic
#40872F #2F6C87 #762F87 #874A2F
square
#40872F #2F6C87 #762F87 #874A2F
split-complementary
#40872F #4A2F87 #872F6C
monochromatic
#152C0F #2A5A1F #40872F #56B43F #7ACA66

Accessibility & contrast

On white

4.44
#40872F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#40872F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40872F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40872F#FFFFFF#000000##000000
##40872F1.004.444.724.72
#FFFFFF4.441.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B24
Deuteranopia (green-blind)
#817536
Tritanopia (blue-blind)
#398375
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #40872f;
/* rgb */ color: rgb(64, 135, 47);
/* oklch */ color: oklch(55.8% 0.142 140.0);
Tailwind
colors: {
  custom: {
    50: '#7caa6b',
    500: '#40872f',
    950: '#000000',
  },
}
SCSS
$custom: #40872f;
$custom-light: #7caa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#40872f",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 108.409,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.55775,
    "c": 0.14231,
    "h": 140
  },
  "luminance": 0.18623
}

Semantic roles & 50–950 ramp

primary
#40872F
secondary
#A161B1
accent
#50D8BE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #40872F

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

Preview Lab → · Contrast checker → · Palette generator →

#40872F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva