#40C780#40C780

#40C780 is a light, vivid green. Relative luminance 0.435; OKLCH L 74.0% C 0.156 H 156.0°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#40C780
RGBrgb(64, 199, 128)
HSLhsl(148, 55%, 52%)
HSVhsv(148, 68%, 78%)
CMYKcmyk(67.8%, 0%, 35.7%, 22%)
CIE-LABlab(71.89, -52.47, 25.23)
CIE-LCHlch(71.89, 58.22, 154.32°)
OKLaboklab(73.96% -0.1421 0.0634)
OKLCHoklch(73.96% 0.156 156)
XYZxyz(26.4316, 43.4925, 27.4198)
Luminance0.4350 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C780 #C74087
analogous
#44C740 #40C780 #40C7C3
triadic
#40C780 #8040C7 #C78040
tetradic
#40C780 #4044C7 #C74087 #C7C340
square
#40C780 #4044C7 #C74087 #C7C340
split-complementary
#40C780 #C340C7 #C74044
monochromatic
#206D44 #2E9C62 #40C780 #6FD59F #9FE3BF

Accessibility & contrast

On white

2.17
#40C780 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#40C780 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C780
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C780#FFFFFF#000000##000000
##40C7801.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B77B
Deuteranopia (green-blind)
#B5AB85
Tritanopia (blue-blind)
#00C5B5
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #40c780;
/* rgb */ color: rgb(64, 199, 128);
/* oklch */ color: oklch(74.0% 0.156 156.0);
Tailwind
colors: {
  custom: {
    50: '#85d9a5',
    500: '#40c780',
    950: '#000000',
  },
}
SCSS
$custom: #40c780;
$custom-light: #85d9a5;
$custom-dark: #000000;
JSON
{
  "hex": "#40c780",
  "rgb": {
    "r": 64,
    "g": 199,
    "b": 128
  },
  "hsl": {
    "h": 148.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.7396,
    "c": 0.15558,
    "h": 156
  },
  "luminance": 0.43495
}

Semantic roles & 50–950 ramp

primary
#40C780
secondary
#CF94B3
accent
#4A98DE
background
#F8FDFA
surface
#F0FBF4
border
#CBD4CE
text
#0C150F
muted
#7D837F

Preview Lab

Preview with #40C780

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

Preview Lab → · Contrast checker → · Palette generator →

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