#40AF71#40AF71

#40AF71 is a light, vivid green. Relative luminance 0.329; OKLCH L 67.5% C 0.137 H 155.3°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#40AF71
RGBrgb(64, 175, 113)
HSLhsl(146, 46%, 47%)
HSVhsv(146, 63%, 69%)
CMYKcmyk(63.4%, 0%, 35.4%, 31.4%)
CIE-LABlab(64.11, -45.83, 22.75)
CIE-LCHlch(64.11, 51.17, 153.60°)
OKLaboklab(67.48% -0.1243 0.0572)
OKLCHoklch(67.48% 0.137 155.3)
XYZxyz(20.4232, 32.9401, 20.9014)
Luminance0.3294 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF71 #AF407E
analogous
#47AF40 #40AF71 #40AFA9
triadic
#40AF71 #7140AF #AF7140
tetradic
#40AF71 #4047AF #AF407E #AFA940
square
#40AF71 #4047AF #AF407E #AFA940
split-complementary
#40AF71 #A940AF #AF4047
monochromatic
#1F5537 #308254 #40AF71 #65C790 #92D7B1

Accessibility & contrast

On white

2.77
#40AF71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#40AF71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF71
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF71#FFFFFF#000000##000000
##40AF711.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA26D
Deuteranopia (green-blind)
#A09775
Tritanopia (blue-blind)
#06AD9F
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40af71;
/* rgb */ color: rgb(64, 175, 113);
/* oklch */ color: oklch(67.5% 0.137 155.3);
Tailwind
colors: {
  custom: {
    50: '#81c89a',
    500: '#40af71',
    950: '#000000',
  },
}
SCSS
$custom: #40af71;
$custom-light: #81c89a;
$custom-dark: #000000;
JSON
{
  "hex": "#40af71",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 113
  },
  "hsl": {
    "h": 146.486,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67481,
    "c": 0.13682,
    "h": 155.3
  },
  "luminance": 0.32942
}

Semantic roles & 50–950 ramp

primary
#40AF71
secondary
#C388A9
accent
#529CD6
background
#F8FCF9
surface
#EFF8F2
border
#CAD1CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #40AF71

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

Preview Lab → · Contrast checker → · Palette generator →

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