#40872D#40872D

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

Color values

HEX#40872D
RGBrgb(64, 135, 45)
HSLhsl(107, 50%, 35%)
HSVhsv(107, 67%, 53%)
CMYKcmyk(52.6%, 0%, 66.7%, 47.1%)
CIE-LABlab(50.22, -39.94, 40.33)
CIE-LCHlch(50.22, 56.76, 134.72°)
OKLaboklab(55.75% -0.1097 0.0932)
OKLCHoklch(55.75% 0.144 139.6)
XYZxyz(11.2515, 18.6065, 5.4806)
Luminance0.1861 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40872D #742D87
analogous
#6D872D #40872D #2D8747
triadic
#40872D #2D4087 #872D40
tetradic
#40872D #2D6D87 #742D87 #87472D
square
#40872D #2D6D87 #742D87 #87472D
split-complementary
#40872D #472D87 #872D6D
monochromatic
#142B0E #2A591E #40872D #56B53C #79CB63

Accessibility & contrast

On white

4.45
#40872D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##40872D#FFFFFF#000000##000000
##40872D1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B22
Deuteranopia (green-blind)
#817535
Tritanopia (blue-blind)
#398374
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40872d;
/* rgb */ color: rgb(64, 135, 45);
/* oklch */ color: oklch(55.8% 0.144 139.6);
Tailwind
colors: {
  custom: {
    50: '#7caa6a',
    500: '#40872d',
    950: '#000000',
  },
}
SCSS
$custom: #40872d;
$custom-light: #7caa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40872d",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 107.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55753,
    "c": 0.1439,
    "h": 139.6
  },
  "luminance": 0.18607
}

Semantic roles & 50–950 ramp

primary
#40872D
secondary
#A05EB2
accent
#4EDABC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #40872D

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

Preview Lab → · Contrast checker → · Palette generator →

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