#40752F#40752F

#40752F is a mid, moderate green. Relative luminance 0.140; OKLCH L 50.9% C 0.117 H 138.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#40752F
RGBrgb(64, 117, 47)
HSLhsl(105, 43%, 32%)
HSVhsv(105, 60%, 46%)
CMYKcmyk(45.3%, 0%, 59.8%, 54.1%)
CIE-LABlab(44.26, -31.93, 32.65)
CIE-LCHlch(44.26, 45.67, 134.36°)
OKLaboklab(50.87% -0.0877 0.077)
OKLCHoklch(50.87% 0.117 138.7)
XYZxyz(8.9884, 14.0173, 4.9207)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40752F #642F75
analogous
#63752F #40752F #2F7541
triadic
#40752F #2F4075 #752F40
tetradic
#40752F #2F6375 #642F75 #75412F
square
#40752F #2F6375 #642F75 #75412F
split-complementary
#40752F #412F75 #752F63
monochromatic
#101E0C #28491D #40752F #58A141 #77BF5F

Accessibility & contrast

On white

5.52
#40752F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#40752F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40752F
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40752F#FFFFFF#000000##FFFFFF
##40752F1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786C28
Deuteranopia (green-blind)
#716734
Tritanopia (blue-blind)
#3C7166
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #40752f;
/* rgb */ color: rgb(64, 117, 47);
/* oklch */ color: oklch(50.9% 0.117 138.7);
Tailwind
colors: {
  custom: {
    50: '#799d6a',
    500: '#40752f',
    950: '#000000',
  },
}
SCSS
$custom: #40752f;
$custom-light: #799d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40752f",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 47
  },
  "hsl": {
    "h": 105.429,
    "s": 42.683,
    "l": 32.157
  },
  "oklch": {
    "l": 0.50865,
    "c": 0.11673,
    "h": 138.7
  },
  "luminance": 0.14018
}

Semantic roles & 50–950 ramp

primary
#40752F
secondary
#935AA6
accent
#55D2B4
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #40752F

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

Preview Lab → · Contrast checker → · Palette generator →

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