#40A72F#40A72F

#40A72F is a light, vivid green. Relative luminance 0.289; OKLCH L 64.4% C 0.183 H 141.1°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#40A72F
RGBrgb(64, 167, 47)
HSLhsl(112, 56%, 42%)
HSVhsv(112, 72%, 65%)
CMYKcmyk(61.7%, 0%, 71.9%, 34.5%)
CIE-LABlab(60.72, -52.08, 50.64)
CIE-LCHlch(60.72, 72.64, 135.80°)
OKLaboklab(64.42% -0.1424 0.1151)
OKLCHoklch(64.42% 0.183 141.1)
XYZxyz(16.4453, 28.9311, 7.4064)
Luminance0.2893 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A72F #962FA7
analogous
#7CA72F #40A72F #2FA75A
triadic
#40A72F #2F40A7 #A72F40
tetradic
#40A72F #2F7CA7 #962FA7 #A75A2F
square
#40A72F #2F7CA7 #962FA7 #A75A2F
split-complementary
#40A72F #5A2FA7 #A72F7C
monochromatic
#1B4714 #2E7722 #40A72F #5ACB48 #85D978

Accessibility & contrast

On white

3.09
#40A72F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#40A72F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A72F
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A72F#FFFFFF#000000##000000
##40A72F1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB981B
Deuteranopia (green-blind)
#9F8F3B
Tritanopia (blue-blind)
#30A28F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #40a72f;
/* rgb */ color: rgb(64, 167, 47);
/* oklch */ color: oklch(64.4% 0.183 141.1);
Tailwind
colors: {
  custom: {
    50: '#81c26f',
    500: '#40a72f',
    950: '#000000',
  },
}
SCSS
$custom: #40a72f;
$custom-light: #81c26f;
$custom-dark: #000000;
JSON
{
  "hex": "#40a72f",
  "rgb": {
    "r": 64,
    "g": 167,
    "b": 47
  },
  "hsl": {
    "h": 111.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.64416,
    "c": 0.18308,
    "h": 141.1
  },
  "luminance": 0.28933
}

Semantic roles & 50–950 ramp

primary
#40A72F
secondary
#B671C1
accent
#48DFCA
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A72F

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

Preview Lab → · Contrast checker → · Palette generator →

#40A72F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva