#40D987#40D987

#40D987 is a light, vivid green. Relative luminance 0.525; OKLCH L 78.7% C 0.173 H 155.0°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#40D987
RGBrgb(64, 217, 135)
HSLhsl(148, 67%, 55%)
HSVhsv(148, 71%, 85%)
CMYKcmyk(70.5%, 0%, 37.8%, 14.9%)
CIE-LABlab(77.56, -57.99, 29.18)
CIE-LCHlch(77.56, 64.91, 153.29°)
OKLaboklab(78.67% -0.1566 0.0729)
OKLCHoklch(78.67% 0.173 155)
XYZxyz(31.2975, 52.4614, 31.3936)
Luminance0.5246 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D987 #D94092
analogous
#46D940 #40D987 #40D9D3
triadic
#40D987 #8740D9 #D98740
tetradic
#40D987 #4046D9 #D94092 #D9D340
square
#40D987 #4046D9 #D94092 #D9D340
split-complementary
#40D987 #D340D9 #D94046
monochromatic
#1A844B #24B769 #40D987 #73E3A7 #A6EDC7

Accessibility & contrast

On white

1.83
#40D987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#40D987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D987
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D987#FFFFFF#000000##000000
##40D9871.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C881
Deuteranopia (green-blind)
#C5BA8C
Tritanopia (blue-blind)
#00D7C4
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #40d987;
/* rgb */ color: rgb(64, 217, 135);
/* oklch */ color: oklch(78.7% 0.173 155.0);
Tailwind
colors: {
  custom: {
    50: '#88e6aa',
    500: '#40d987',
    950: '#000000',
  },
}
SCSS
$custom: #40d987;
$custom-light: #88e6aa;
$custom-dark: #000000;
JSON
{
  "hex": "#40d987",
  "rgb": {
    "r": 64,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 147.843,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.78666,
    "c": 0.17279,
    "h": 155
  },
  "luminance": 0.52465
}

Semantic roles & 50–950 ramp

primary
#40D987
secondary
#8B3262
accent
#3E9AEA
background
#FCFEFD
surface
#F4FCF7
border
#CED5D0
text
#0D1610
muted
#7F8481

Preview Lab

Preview with #40D987

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

Preview Lab → · Contrast checker → · Palette generator →

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