#40881F#40881F

#40881F is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.9% C 0.155 H 137.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#40881F
RGBrgb(64, 136, 31)
HSLhsl(101, 63%, 33%)
HSVhsv(101, 77%, 53%)
CMYKcmyk(52.9%, 0%, 77.2%, 46.7%)
CIE-LABlab(50.45, -41.54, 46.27)
CIE-LCHlch(50.45, 62.18, 131.92°)
OKLaboklab(55.9% -0.1149 0.1037)
OKLCHoklch(55.9% 0.155 137.9)
XYZxyz(11.1654, 18.7964, 4.3358)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40881F #671F88
analogous
#74881F #40881F #1F8833
triadic
#40881F #1F4088 #881F40
tetradic
#40881F #1F7488 #671F88 #88331F
square
#40881F #1F7488 #671F88 #88331F
split-complementary
#40881F #331F88 #881F74
monochromatic
#112408 #295614 #40881F #57BA2A #77D64B

Accessibility & contrast

On white

4.41
#40881F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#40881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40881F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40881F#FFFFFF#000000##000000
##40881F1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C08
Deuteranopia (green-blind)
#83762A
Tritanopia (blue-blind)
#3B8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #40881f;
/* rgb */ color: rgb(64, 136, 31);
/* oklch */ color: oklch(55.9% 0.155 137.9);
Tailwind
colors: {
  custom: {
    50: '#7dab63',
    500: '#40881f',
    950: '#000000',
  },
}
SCSS
$custom: #40881f;
$custom-light: #7dab63;
$custom-dark: #000000;
JSON
{
  "hex": "#40881f",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 101.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55904,
    "c": 0.1548,
    "h": 137.9
  },
  "luminance": 0.18797
}

Semantic roles & 50–950 ramp

primary
#40881F
secondary
#964AB9
accent
#42E6B2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #40881F

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

Preview Lab → · Contrast checker → · Palette generator →

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