#40C870#40C870

#40C870 is a light, vivid green. Relative luminance 0.436; OKLCH L 73.9% C 0.172 H 151.2°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#40C870
RGBrgb(64, 200, 112)
HSLhsl(141, 55%, 52%)
HSVhsv(141, 68%, 78%)
CMYKcmyk(68%, 0%, 44%, 21.6%)
CIE-LABlab(71.94, -55.75, 33.58)
CIE-LCHlch(71.94, 65.09, 148.94°)
OKLaboklab(73.91% -0.1503 0.0827)
OKLCHoklch(73.91% 0.172 151.2)
XYZxyz(25.6912, 43.5656, 22.3811)
Luminance0.4357 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C870 #C84098
analogous
#54C840 #40C870 #40C8B4
triadic
#40C870 #7040C8 #C87040
tetradic
#40C870 #4054C8 #C84098 #C8B440
square
#40C870 #4054C8 #C84098 #C8B440
split-complementary
#40C870 #B440C8 #C84054
monochromatic
#206E3B #2D9D55 #40C870 #70D694 #9FE3B7

Accessibility & contrast

On white

2.16
#40C870 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#40C870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C870
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C870#FFFFFF#000000##000000
##40C8701.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B769
Deuteranopia (green-blind)
#B8AC76
Tritanopia (blue-blind)
#00C5B3
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #40c870;
/* rgb */ color: rgb(64, 200, 112);
/* oklch */ color: oklch(73.9% 0.172 151.2);
Tailwind
colors: {
  custom: {
    50: '#85da9a',
    500: '#40c870',
    950: '#000000',
  },
}
SCSS
$custom: #40c870;
$custom-light: #85da9a;
$custom-dark: #000000;
JSON
{
  "hex": "#40c870",
  "rgb": {
    "r": 64,
    "g": 200,
    "b": 112
  },
  "hsl": {
    "h": 141.176,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.73915,
    "c": 0.17154,
    "h": 151.2
  },
  "luminance": 0.43568
}

Semantic roles & 50–950 ramp

primary
#40C870
secondary
#D094BB
accent
#49AADF
background
#F8FDF9
surface
#F0FBF2
border
#CBD4CC
text
#0C150E
muted
#7D837E

Preview Lab

Preview with #40C870

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

Preview Lab → · Contrast checker → · Palette generator →

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