#40752A#40752A

#40752A is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.8% C 0.121 H 137.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#40752A
RGBrgb(64, 117, 42)
HSLhsl(102, 47%, 31%)
HSVhsv(102, 64%, 46%)
CMYKcmyk(45.3%, 0%, 64.1%, 54.1%)
CIE-LABlab(44.20, -32.50, 35.06)
CIE-LCHlch(44.20, 47.81, 132.83°)
OKLaboklab(50.8% -0.0897 0.0817)
OKLCHoklch(50.8% 0.121 137.7)
XYZxyz(8.8933, 13.9792, 4.4197)
Luminance0.1398 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40752A #5F2A75
analogous
#65752A #40752A #2A7539
triadic
#40752A #2A4075 #752A40
tetradic
#40752A #2A6575 #5F2A75 #75392A
square
#40752A #2A6575 #5F2A75 #75392A
split-complementary
#40752A #392A75 #752A65
monochromatic
#0F1B0A #27481A #40752A #59A23A #76C357

Accessibility & contrast

On white

5.53
#40752A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40752A
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40752A#FFFFFF#000000##FFFFFF
##40752A1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B21
Deuteranopia (green-blind)
#716730
Tritanopia (blue-blind)
#3D7165
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40752a;
/* rgb */ color: rgb(64, 117, 42);
/* oklch */ color: oklch(50.8% 0.121 137.7);
Tailwind
colors: {
  custom: {
    50: '#799d67',
    500: '#40752a',
    950: '#000000',
  },
}
SCSS
$custom: #40752a;
$custom-light: #799d67;
$custom-dark: #000000;
JSON
{
  "hex": "#40752a",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 42
  },
  "hsl": {
    "h": 102.4,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.50803,
    "c": 0.12127,
    "h": 137.7
  },
  "luminance": 0.1398
}

Semantic roles & 50–950 ramp

primary
#40752A
secondary
#8F54A7
accent
#51D7B0
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #40752A

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

Preview Lab → · Contrast checker → · Palette generator →

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