#40C879#40C879

#40C879 is a light, vivid green. Relative luminance 0.438; OKLCH L 74.1% C 0.163 H 153.6°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#40C879
RGBrgb(64, 200, 121)
HSLhsl(145, 55%, 52%)
HSVhsv(145, 68%, 78%)
CMYKcmyk(68%, 0%, 39.5%, 21.6%)
CIE-LABlab(72.08, -54.17, 29.14)
CIE-LCHlch(72.08, 61.51, 151.72°)
OKLaboklab(74.08% -0.1463 0.0726)
OKLCHoklch(74.08% 0.163 153.6)
XYZxyz(26.2175, 43.7762, 25.1534)
Luminance0.4378 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C879 #C8408F
analogous
#4BC840 #40C879 #40C8BD
triadic
#40C879 #7940C8 #C87940
tetradic
#40C879 #404BC8 #C8408F #C8BD40
square
#40C879 #404BC8 #C8408F #C8BD40
split-complementary
#40C879 #BD40C8 #C8404B
monochromatic
#206E40 #2D9D5C #40C879 #70D69A #9FE3BC

Accessibility & contrast

On white

2.15
#40C879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#40C879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C879
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C879#FFFFFF#000000##000000
##40C8791.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B874
Deuteranopia (green-blind)
#B7AC7E
Tritanopia (blue-blind)
#00C6B4
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #40c879;
/* rgb */ color: rgb(64, 200, 121);
/* oklch */ color: oklch(74.1% 0.163 153.6);
Tailwind
colors: {
  custom: {
    50: '#85daa0',
    500: '#40c879',
    950: '#000000',
  },
}
SCSS
$custom: #40c879;
$custom-light: #85daa0;
$custom-dark: #000000;
JSON
{
  "hex": "#40c879",
  "rgb": {
    "r": 64,
    "g": 200,
    "b": 121
  },
  "hsl": {
    "h": 145.147,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.74078,
    "c": 0.16329,
    "h": 153.6
  },
  "luminance": 0.43779
}

Semantic roles & 50–950 ramp

primary
#40C879
secondary
#D094B7
accent
#49A0DF
background
#F8FDF9
surface
#F0FBF2
border
#CBD4CC
text
#0C150F
muted
#7D837E

Preview Lab

Preview with #40C879

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

Preview Lab → · Contrast checker → · Palette generator →

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