#40872A#40872A

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

Color values

HEX#40872A
RGBrgb(64, 135, 42)
HSLhsl(106, 53%, 35%)
HSVhsv(106, 69%, 53%)
CMYKcmyk(52.6%, 0%, 68.9%, 47.1%)
CIE-LABlab(50.20, -40.23, 41.63)
CIE-LCHlch(50.20, 57.90, 134.02°)
OKLaboklab(55.72% -0.1106 0.0956)
OKLCHoklch(55.72% 0.146 139.2)
XYZxyz(11.1958, 18.5843, 5.1872)
Luminance0.1858 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40872A #712A87
analogous
#6F872A #40872A #2A8742
triadic
#40872A #2A4087 #872A40
tetradic
#40872A #2A6F87 #712A87 #87422A
square
#40872A #2A6F87 #712A87 #87422A
split-complementary
#40872A #422A87 #872A6F
monochromatic
#142A0D #2A581B #40872A #56B639 #79CD5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40872A#FFFFFF#000000##000000
##40872A1.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)
#8B7B1D
Deuteranopia (green-blind)
#827532
Tritanopia (blue-blind)
#3A8274
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40872a;
/* rgb */ color: rgb(64, 135, 42);
/* oklch */ color: oklch(55.7% 0.146 139.2);
Tailwind
colors: {
  custom: {
    50: '#7cab68',
    500: '#40872a',
    950: '#000000',
  },
}
SCSS
$custom: #40872a;
$custom-light: #7cab68;
$custom-dark: #000000;
JSON
{
  "hex": "#40872a",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 42
  },
  "hsl": {
    "h": 105.806,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.55723,
    "c": 0.1462,
    "h": 139.2
  },
  "luminance": 0.18585
}

Semantic roles & 50–950 ramp

primary
#40872A
secondary
#9E5AB3
accent
#4CDCBA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #40872A

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

Preview Lab → · Contrast checker → · Palette generator →

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