#40D879#40D879

#40D879 is a light, vivid green. Relative luminance 0.516; OKLCH L 78.2% C 0.184 H 151.6°. Best body text is #000000 at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#40D879
RGBrgb(64, 216, 121)
HSLhsl(143, 66%, 55%)
HSVhsv(143, 70%, 85%)
CMYKcmyk(70.4%, 0%, 44%, 15.3%)
CIE-LABlab(77.03, -60.10, 35.60)
CIE-LCHlch(77.03, 69.85, 149.36°)
OKLaboklab(78.16% -0.1619 0.0877)
OKLCHoklch(78.16% 0.184 151.6)
XYZxyz(30.1189, 51.5788, 26.4538)
Luminance0.5158 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D879 #D8409F
analogous
#53D840 #40D879 #40D8C5
triadic
#40D879 #7940D8 #D87940
tetradic
#40D879 #4053D8 #D8409F #D8C540
square
#40D879 #4053D8 #D8409F #D8C540
split-complementary
#40D879 #C540D8 #D84053
monochromatic
#1B8342 #25B65B #40D879 #73E29D #A6EDC0

Accessibility & contrast

On white

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

On black

11.32
#40D879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D879
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D879#FFFFFF#000000##000000
##40D8791.001.8611.3211.32
#FFFFFF1.861.0021.0021.00
#00000011.3221.001.001.00
##00000011.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40d879;
/* rgb */ color: rgb(64, 216, 121);
/* oklch */ color: oklch(78.2% 0.184 151.6);
Tailwind
colors: {
  custom: {
    50: '#88e5a1',
    500: '#40d879',
    950: '#000000',
  },
}
SCSS
$custom: #40d879;
$custom-light: #88e5a1;
$custom-dark: #000000;
JSON
{
  "hex": "#40d879",
  "rgb": {
    "r": 64,
    "g": 216,
    "b": 121
  },
  "hsl": {
    "h": 142.5,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.78159,
    "c": 0.18407,
    "h": 151.6
  },
  "luminance": 0.51582
}

Semantic roles & 50–950 ramp

primary
#40D879
secondary
#8A3369
accent
#3FA9E9
background
#FCFEFC
surface
#F4FCF5
border
#CED5CF
text
#0D160F
muted
#7F8480

Preview Lab

Preview with #40D879

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

Preview Lab → · Contrast checker → · Palette generator →

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