#40A52A#40A52A

#40A52A is a light, vivid green. Relative luminance 0.282; OKLCH L 63.8% C 0.184 H 140.5°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#40A52A
RGBrgb(64, 165, 42)
HSLhsl(109, 59%, 41%)
HSVhsv(109, 75%, 65%)
CMYKcmyk(61.2%, 0%, 74.5%, 35.3%)
CIE-LABlab(60.04, -51.75, 51.81)
CIE-LCHlch(60.04, 73.23, 134.97°)
OKLaboklab(63.84% -0.1418 0.1169)
OKLCHoklch(63.84% 0.184 140.5)
XYZxyz(15.9866, 28.1659, 6.7841)
Luminance0.2817 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A52A #8F2AA5
analogous
#7DA52A #40A52A #2AA551
triadic
#40A52A #2A40A5 #A52A40
tetradic
#40A52A #2A7DA5 #8F2AA5 #A5512A
square
#40A52A #2A7DA5 #8F2AA5 #A5512A
split-complementary
#40A52A #512AA5 #A52A7D
monochromatic
#1A4311 #2D741E #40A52A #58CE3E #82DA6F

Accessibility & contrast

On white

3.17
#40A52A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#40A52A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A52A
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A52A#FFFFFF#000000##000000
##40A52A1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99612
Deuteranopia (green-blind)
#9D8E37
Tritanopia (blue-blind)
#32A08D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #40a52a;
/* rgb */ color: rgb(64, 165, 42);
/* oklch */ color: oklch(63.8% 0.184 140.5);
Tailwind
colors: {
  custom: {
    50: '#81c16c',
    500: '#40a52a',
    950: '#000000',
  },
}
SCSS
$custom: #40a52a;
$custom-light: #81c16c;
$custom-dark: #000000;
JSON
{
  "hex": "#40a52a",
  "rgb": {
    "r": 64,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 109.268,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.63841,
    "c": 0.18374,
    "h": 140.5
  },
  "luminance": 0.28167
}

Semantic roles & 50–950 ramp

primary
#40A52A
secondary
#B269C1
accent
#45E3C6
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A52A

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

Preview Lab → · Contrast checker → · Palette generator →

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