#40C878#40C878

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

Color values

HEX#40C878
RGBrgb(64, 200, 120)
HSLhsl(145, 55%, 52%)
HSVhsv(145, 68%, 78%)
CMYKcmyk(68%, 0%, 40%, 21.6%)
CIE-LABlab(72.06, -54.35, 29.64)
CIE-LCHlch(72.06, 61.91, 151.40°)
OKLaboklab(74.06% -0.1467 0.0737)
OKLCHoklch(74.06% 0.164 153.3)
XYZxyz(26.1565, 43.7518, 24.8321)
Luminance0.4375 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C878 #C84090
analogous
#4CC840 #40C878 #40C8BC
triadic
#40C878 #7840C8 #C87840
tetradic
#40C878 #404CC8 #C84090 #C8BC40
square
#40C878 #404CC8 #C84090 #C8BC40
split-complementary
#40C878 #BC40C8 #C8404C
monochromatic
#206E40 #2D9D5C #40C878 #70D69A #9FE3BB

Accessibility & contrast

On white

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

On black

9.75
#40C878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C878
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C878#FFFFFF#000000##000000
##40C8781.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B872
Deuteranopia (green-blind)
#B7AC7D
Tritanopia (blue-blind)
#00C5B4
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #40c878;
/* rgb */ color: rgb(64, 200, 120);
/* oklch */ color: oklch(74.1% 0.164 153.3);
Tailwind
colors: {
  custom: {
    50: '#85da9f',
    500: '#40c878',
    950: '#000000',
  },
}
SCSS
$custom: #40c878;
$custom-light: #85da9f;
$custom-dark: #000000;
JSON
{
  "hex": "#40c878",
  "rgb": {
    "r": 64,
    "g": 200,
    "b": 120
  },
  "hsl": {
    "h": 144.706,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.74059,
    "c": 0.1642,
    "h": 153.3
  },
  "luminance": 0.43755
}

Semantic roles & 50–950 ramp

primary
#40C878
secondary
#D094B7
accent
#49A1DF
background
#F8FDF9
surface
#F0FBF2
border
#CBD4CC
text
#0C150E
muted
#7D837E

Preview Lab

Preview with #40C878

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

Preview Lab → · Contrast checker → · Palette generator →

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