#40872B#40872B

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

Color values

HEX#40872B
RGBrgb(64, 135, 43)
HSLhsl(106, 52%, 35%)
HSVhsv(106, 68%, 53%)
CMYKcmyk(52.6%, 0%, 68.1%, 47.1%)
CIE-LABlab(50.21, -40.14, 41.20)
CIE-LCHlch(50.21, 57.52, 134.25°)
OKLaboklab(55.73% -0.1103 0.0948)
OKLCHoklch(55.73% 0.145 139.3)
XYZxyz(11.2139, 18.5915, 5.2826)
Luminance0.1859 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40872B #722B87
analogous
#6E872B #40872B #2B8744
triadic
#40872B #2B4087 #872B40
tetradic
#40872B #2B6E87 #722B87 #87442B
square
#40872B #2B6E87 #722B87 #87442B
split-complementary
#40872B #442B87 #872B6E
monochromatic
#142A0D #2A591C #40872B #56B53A #79CC60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40872B#FFFFFF#000000##000000
##40872B1.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)
#8B7B1F
Deuteranopia (green-blind)
#827533
Tritanopia (blue-blind)
#398274
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40872b;
/* rgb */ color: rgb(64, 135, 43);
/* oklch */ color: oklch(55.7% 0.145 139.3);
Tailwind
colors: {
  custom: {
    50: '#7cab69',
    500: '#40872b',
    950: '#000000',
  },
}
SCSS
$custom: #40872b;
$custom-light: #7cab69;
$custom-dark: #000000;
JSON
{
  "hex": "#40872b",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 43
  },
  "hsl": {
    "h": 106.304,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.55733,
    "c": 0.14544,
    "h": 139.3
  },
  "luminance": 0.18592
}

Semantic roles & 50–950 ramp

primary
#40872B
secondary
#9F5BB2
accent
#4DDBBB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #40872B

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

Preview Lab → · Contrast checker → · Palette generator →

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