#40C871#40C871

#40C871 is a light, vivid green. Relative luminance 0.436; OKLCH L 73.9% C 0.171 H 151.4°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#40C871
RGBrgb(64, 200, 113)
HSLhsl(142, 55%, 52%)
HSVhsv(142, 68%, 78%)
CMYKcmyk(68%, 0%, 43.5%, 21.6%)
CIE-LABlab(71.95, -55.59, 33.09)
CIE-LCHlch(71.95, 64.69, 149.23°)
OKLaboklab(73.93% -0.1498 0.0816)
OKLCHoklch(73.93% 0.171 151.4)
XYZxyz(25.7471, 43.5880, 22.6760)
Luminance0.4359 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C871 #C84097
analogous
#53C840 #40C871 #40C8B5
triadic
#40C871 #7140C8 #C87140
tetradic
#40C871 #4053C8 #C84097 #C8B540
square
#40C871 #4053C8 #C84097 #C8B540
split-complementary
#40C871 #B540C8 #C84053
monochromatic
#206E3C #2D9D56 #40C871 #70D694 #9FE3B8

Accessibility & contrast

On white

2.16
#40C871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#40C871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C871
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C871#FFFFFF#000000##000000
##40C8711.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B76B
Deuteranopia (green-blind)
#B8AC77
Tritanopia (blue-blind)
#00C5B3
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #40c871;
/* rgb */ color: rgb(64, 200, 113);
/* oklch */ color: oklch(73.9% 0.171 151.4);
Tailwind
colors: {
  custom: {
    50: '#85da9b',
    500: '#40c871',
    950: '#000000',
  },
}
SCSS
$custom: #40c871;
$custom-light: #85da9b;
$custom-dark: #000000;
JSON
{
  "hex": "#40c871",
  "rgb": {
    "r": 64,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 141.618,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.73932,
    "c": 0.17062,
    "h": 151.4
  },
  "luminance": 0.43591
}

Semantic roles & 50–950 ramp

primary
#40C871
secondary
#D094BA
accent
#49A9DF
background
#F8FDF9
surface
#F0FBF2
border
#CBD4CC
text
#0C150E
muted
#7D837E

Preview Lab

Preview with #40C871

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

Preview Lab → · Contrast checker → · Palette generator →

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