#40871D#40871D

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

Color values

HEX#40871D
RGBrgb(64, 135, 29)
HSLhsl(100, 65%, 32%)
HSVhsv(100, 79%, 53%)
CMYKcmyk(52.6%, 0%, 78.5%, 47.1%)
CIE-LABlab(50.10, -41.27, 46.64)
CIE-LCHlch(50.10, 62.28, 131.50°)
OKLaboklab(55.62% -0.1143 0.1042)
OKLCHoklch(55.62% 0.155 137.7)
XYZxyz(10.9997, 18.5058, 4.1545)
Luminance0.1851 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40871D #641D87
analogous
#75871D #40871D #1D872F
triadic
#40871D #1D4087 #871D40
tetradic
#40871D #1D7587 #641D87 #872F1D
square
#40871D #1D7587 #641D87 #872F1D
split-complementary
#40871D #2F1D87 #871D75
monochromatic
#102207 #285512 #40871D #58B928 #77D747

Accessibility & contrast

On white

4.47
#40871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##40871D#FFFFFF#000000##000000
##40871D1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B04
Deuteranopia (green-blind)
#827529
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40871d;
/* rgb */ color: rgb(64, 135, 29);
/* oklch */ color: oklch(55.6% 0.155 137.7);
Tailwind
colors: {
  custom: {
    50: '#7dab62',
    500: '#40871d',
    950: '#000000',
  },
}
SCSS
$custom: #40871d;
$custom-light: #7dab62;
$custom-dark: #000000;
JSON
{
  "hex": "#40871d",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 100.189,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55616,
    "c": 0.15468,
    "h": 137.7
  },
  "luminance": 0.18507
}

Semantic roles & 50–950 ramp

primary
#40871D
secondary
#9346B9
accent
#40E8B0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40871D

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

Preview Lab → · Contrast checker → · Palette generator →

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