#40C781#40C781

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

Color values

HEX#40C781
RGBrgb(64, 199, 129)
HSLhsl(149, 55%, 52%)
HSVhsv(149, 68%, 78%)
CMYKcmyk(67.8%, 0%, 35.2%, 22%)
CIE-LABlab(71.91, -52.27, 24.73)
CIE-LCHlch(71.91, 57.83, 154.68°)
OKLaboklab(73.98% -0.1416 0.0622)
OKLCHoklch(73.98% 0.155 156.3)
XYZxyz(26.4978, 43.5189, 27.7681)
Luminance0.4352 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C781 #C74086
analogous
#43C740 #40C781 #40C7C5
triadic
#40C781 #8140C7 #C78140
tetradic
#40C781 #4043C7 #C74086 #C7C540
square
#40C781 #4043C7 #C74086 #C7C540
split-complementary
#40C781 #C540C7 #C74043
monochromatic
#206D45 #2E9C63 #40C781 #6FD5A0 #9FE3BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40C781#FFFFFF#000000##000000
##40C7811.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40c781;
/* rgb */ color: rgb(64, 199, 129);
/* oklch */ color: oklch(74.0% 0.155 156.3);
Tailwind
colors: {
  custom: {
    50: '#85d9a6',
    500: '#40c781',
    950: '#000000',
  },
}
SCSS
$custom: #40c781;
$custom-light: #85d9a6;
$custom-dark: #000000;
JSON
{
  "hex": "#40c781",
  "rgb": {
    "r": 64,
    "g": 199,
    "b": 129
  },
  "hsl": {
    "h": 148.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.73981,
    "c": 0.15467,
    "h": 156.3
  },
  "luminance": 0.43522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40C781

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

Preview Lab → · Contrast checker → · Palette generator →

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