#40A240#40A240

#40A240 is a light, vivid green. Relative luminance 0.273; OKLCH L 63.2% C 0.164 H 143.3°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#40A240
RGBrgb(64, 162, 64)
HSLhsl(120, 43%, 44%)
HSVhsv(120, 60%, 64%)
CMYKcmyk(60.5%, 0%, 60.5%, 36.5%)
CIE-LABlab(59.25, -48.51, 41.73)
CIE-LCHlch(59.25, 63.99, 139.30°)
OKLaboklab(63.25% -0.1318 0.0982)
OKLCHoklch(63.25% 0.164 143.3)
XYZxyz(15.9592, 27.2993, 9.2778)
Luminance0.2730 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A240 #A240A2
analogous
#71A240 #40A240 #40A271
triadic
#40A240 #4040A2 #A24040
tetradic
#40A240 #4071A2 #A240A2 #A27140
square
#40A240 #4071A2 #A240A2 #A27140
split-complementary
#40A240 #7140A2 #A24071
monochromatic
#1D4A1D #2F762F #40A240 #5FC05F #8BD18B

Accessibility & contrast

On white

3.25
#40A240 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#40A240 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A240
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A240#FFFFFF#000000##000000
##40A2401.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59436
Deuteranopia (green-blind)
#998B48
Tritanopia (blue-blind)
#2E9E8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a240;
/* rgb */ color: rgb(64, 162, 64);
/* oklch */ color: oklch(63.2% 0.164 143.3);
Tailwind
colors: {
  custom: {
    50: '#7fbe78',
    500: '#40a240',
    950: '#000000',
  },
}
SCSS
$custom: #40a240;
$custom-light: #7fbe78;
$custom-dark: #000000;
JSON
{
  "hex": "#40a240",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.63249,
    "c": 0.16433,
    "h": 143.3
  },
  "luminance": 0.27301
}

Semantic roles & 50–950 ramp

primary
#40A240
secondary
#BC82BC
accent
#55D3D3
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A240

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

Preview Lab → · Contrast checker → · Palette generator →

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