#40872C#40872C

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

Color values

HEX#40872C
RGBrgb(64, 135, 44)
HSLhsl(107, 51%, 35%)
HSVhsv(107, 67%, 53%)
CMYKcmyk(52.6%, 0%, 67.4%, 47.1%)
CIE-LABlab(50.21, -40.04, 40.77)
CIE-LCHlch(50.21, 57.15, 134.48°)
OKLaboklab(55.74% -0.11 0.094)
OKLCHoklch(55.74% 0.145 139.5)
XYZxyz(11.2325, 18.5989, 5.3804)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40872C #732C87
analogous
#6E872C #40872C #2C8745
triadic
#40872C #2C4087 #872C40
tetradic
#40872C #2C6E87 #732C87 #87452C
square
#40872C #2C6E87 #732C87 #87452C
split-complementary
#40872C #452C87 #872C6E
monochromatic
#142B0E #2A591D #40872C #56B53B #79CC62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40872C#FFFFFF#000000##000000
##40872C1.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)
#8B7B20
Deuteranopia (green-blind)
#827534
Tritanopia (blue-blind)
#398374
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40872c;
/* rgb */ color: rgb(64, 135, 44);
/* oklch */ color: oklch(55.7% 0.145 139.5);
Tailwind
colors: {
  custom: {
    50: '#7caa6a',
    500: '#40872c',
    950: '#000000',
  },
}
SCSS
$custom: #40872c;
$custom-light: #7caa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40872c",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 44
  },
  "hsl": {
    "h": 106.813,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.55743,
    "c": 0.14468,
    "h": 139.5
  },
  "luminance": 0.186
}

Semantic roles & 50–950 ramp

primary
#40872C
secondary
#9F5DB2
accent
#4DDABB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #40872C

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

Preview Lab → · Contrast checker → · Palette generator →

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