#40C371#40C371

#40C371 is a light, vivid green. Relative luminance 0.413; OKLCH L 72.6% C 0.164 H 152.0°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#40C371
RGBrgb(64, 195, 113)
HSLhsl(142, 52%, 51%)
HSVhsv(142, 67%, 76%)
CMYKcmyk(67.2%, 0%, 42.1%, 23.5%)
CIE-LABlab(70.39, -53.71, 31.07)
CIE-LCHlch(70.39, 62.04, 149.95°)
OKLaboklab(72.65% -0.1449 0.0769)
OKLCHoklch(72.65% 0.164 152)
XYZxyz(24.6080, 41.3098, 22.2963)
Luminance0.4131 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C371 #C34092
analogous
#50C340 #40C371 #40C3B2
triadic
#40C371 #7140C3 #C37140
tetradic
#40C371 #4050C3 #C34092 #C3B240
square
#40C371 #4050C3 #C34092 #C3B240
split-complementary
#40C371 #B240C3 #C34050
monochromatic
#21683B #2F9756 #40C371 #6FD294 #9DE0B6

Accessibility & contrast

On white

2.27
#40C371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#40C371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C371
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C371#FFFFFF#000000##000000
##40C3711.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3B36B
Deuteranopia (green-blind)
#B3A877
Tritanopia (blue-blind)
#00C0AF
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #40c371;
/* rgb */ color: rgb(64, 195, 113);
/* oklch */ color: oklch(72.6% 0.164 152.0);
Tailwind
colors: {
  custom: {
    50: '#84d69b',
    500: '#40c371',
    950: '#000000',
  },
}
SCSS
$custom: #40c371;
$custom-light: #84d69b;
$custom-dark: #000000;
JSON
{
  "hex": "#40c371",
  "rgb": {
    "r": 64,
    "g": 195,
    "b": 113
  },
  "hsl": {
    "h": 142.443,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.72647,
    "c": 0.16402,
    "h": 152
  },
  "luminance": 0.41312
}

Semantic roles & 50–950 ramp

primary
#40C371
secondary
#CC92B7
accent
#4CA6DC
background
#F8FDF9
surface
#F0FAF2
border
#CBD3CC
text
#0C140E
muted
#7D837E

Preview Lab

Preview with #40C371

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

Preview Lab → · Contrast checker → · Palette generator →

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