#40871F#40871F

#40871F is a mid, vivid green. Relative luminance 0.185; OKLCH L 55.6% C 0.154 H 137.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#40871F
RGBrgb(64, 135, 31)
HSLhsl(101, 63%, 33%)
HSVhsv(101, 77%, 53%)
CMYKcmyk(52.6%, 0%, 77%, 47.1%)
CIE-LABlab(50.12, -41.13, 45.94)
CIE-LCHlch(50.12, 61.67, 131.84°)
OKLaboklab(55.63% -0.1138 0.103)
OKLCHoklch(55.63% 0.154 137.8)
XYZxyz(11.0253, 18.5160, 4.2890)
Luminance0.1852 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40871F #661F87
analogous
#74871F #40871F #1F8732
triadic
#40871F #1F4087 #871F40
tetradic
#40871F #1F7487 #661F87 #87321F
square
#40871F #1F7487 #661F87 #87321F
split-complementary
#40871F #321F87 #871F74
monochromatic
#112308 #285514 #40871F #58B92A #77D64B

Accessibility & contrast

On white

4.46
#40871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#40871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40871F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40871F#FFFFFF#000000##000000
##40871F1.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B08
Deuteranopia (green-blind)
#82752A
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40871f;
/* rgb */ color: rgb(64, 135, 31);
/* oklch */ color: oklch(55.6% 0.154 137.8);
Tailwind
colors: {
  custom: {
    50: '#7cab63',
    500: '#40871f',
    950: '#000000',
  },
}
SCSS
$custom: #40871f;
$custom-light: #7cab63;
$custom-dark: #000000;
JSON
{
  "hex": "#40871f",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 100.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5563,
    "c": 0.15354,
    "h": 137.8
  },
  "luminance": 0.18517
}

Semantic roles & 50–950 ramp

primary
#40871F
secondary
#954AB8
accent
#42E6B2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #40871F

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

Preview Lab → · Contrast checker → · Palette generator →

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