#40A52F#40A52F

#40A52F is a light, vivid green. Relative luminance 0.282; OKLCH L 63.9% C 0.181 H 141.0°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#40A52F
RGBrgb(64, 165, 47)
HSLhsl(111, 56%, 42%)
HSVhsv(111, 72%, 65%)
CMYKcmyk(61.2%, 0%, 71.5%, 35.3%)
CIE-LABlab(60.07, -51.35, 49.97)
CIE-LCHlch(60.07, 71.65, 135.78°)
OKLaboklab(63.88% -0.1404 0.1137)
OKLCHoklch(63.88% 0.181 141)
XYZxyz(16.0818, 28.2040, 7.2852)
Luminance0.2821 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A52F #942FA5
analogous
#7BA52F #40A52F #2FA559
triadic
#40A52F #2F40A5 #A52F40
tetradic
#40A52F #2F7BA5 #942FA5 #A5592F
square
#40A52F #2F7BA5 #942FA5 #A5592F
split-complementary
#40A52F #592FA5 #A52F7B
monochromatic
#1B4614 #2E7521 #40A52F #5ACB47 #84D876

Accessibility & contrast

On white

3.16
#40A52F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#40A52F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A52F
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A52F#FFFFFF#000000##000000
##40A52F1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9961C
Deuteranopia (green-blind)
#9D8E3B
Tritanopia (blue-blind)
#31A08E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #40a52f;
/* rgb */ color: rgb(64, 165, 47);
/* oklch */ color: oklch(63.9% 0.181 141.0);
Tailwind
colors: {
  custom: {
    50: '#81c16e',
    500: '#40a52f',
    950: '#000000',
  },
}
SCSS
$custom: #40a52f;
$custom-light: #81c16e;
$custom-dark: #000000;
JSON
{
  "hex": "#40a52f",
  "rgb": {
    "r": 64,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 111.356,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.6388,
    "c": 0.18067,
    "h": 141
  },
  "luminance": 0.28205
}

Semantic roles & 50–950 ramp

primary
#40A52F
secondary
#B470C0
accent
#49DFC9
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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