#40D878#40D878

#40D878 is a light, vivid green. Relative luminance 0.516; OKLCH L 78.1% C 0.185 H 151.3°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#40D878
RGBrgb(64, 216, 120)
HSLhsl(142, 66%, 55%)
HSVhsv(142, 70%, 85%)
CMYKcmyk(70.4%, 0%, 44.4%, 15.3%)
CIE-LABlab(77.01, -60.27, 36.08)
CIE-LCHlch(77.01, 70.24, 149.09°)
OKLaboklab(78.14% -0.1623 0.0887)
OKLCHoklch(78.14% 0.185 151.3)
XYZxyz(30.0579, 51.5544, 26.1325)
Luminance0.5156 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D878 #D840A0
analogous
#54D840 #40D878 #40D8C4
triadic
#40D878 #7840D8 #D87840
tetradic
#40D878 #4054D8 #D840A0 #D8C440
square
#40D878 #4054D8 #D840A0 #D8C440
split-complementary
#40D878 #C440D8 #D84054
monochromatic
#1B8341 #25B65A #40D878 #73E29C #A6EDC0

Accessibility & contrast

On white

1.86
#40D878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#40D878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D878
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D878#FFFFFF#000000##000000
##40D8781.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C671
Deuteranopia (green-blind)
#C6B97F
Tritanopia (blue-blind)
#00D5C1
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #40d878;
/* rgb */ color: rgb(64, 216, 120);
/* oklch */ color: oklch(78.1% 0.185 151.3);
Tailwind
colors: {
  custom: {
    50: '#88e5a0',
    500: '#40d878',
    950: '#000000',
  },
}
SCSS
$custom: #40d878;
$custom-light: #88e5a0;
$custom-dark: #000000;
JSON
{
  "hex": "#40d878",
  "rgb": {
    "r": 64,
    "g": 216,
    "b": 120
  },
  "hsl": {
    "h": 142.105,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.78142,
    "c": 0.18496,
    "h": 151.3
  },
  "luminance": 0.51558
}

Semantic roles & 50–950 ramp

primary
#40D878
secondary
#8A336A
accent
#3FAAE9
background
#FCFEFC
surface
#F4FCF5
border
#CED5CF
text
#0D160F
muted
#7F8480

Preview Lab

Preview with #40D878

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

Preview Lab → · Contrast checker → · Palette generator →

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