#40AF77#40AF77

#40AF77 is a light, vivid green. Relative luminance 0.331; OKLCH L 67.6% C 0.131 H 157.7°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#40AF77
RGBrgb(64, 175, 119)
HSLhsl(150, 46%, 47%)
HSVhsv(150, 63%, 69%)
CMYKcmyk(63.4%, 0%, 32%, 31.4%)
CIE-LABlab(64.23, -44.62, 19.66)
CIE-LCHlch(64.23, 48.76, 156.22°)
OKLaboklab(67.61% -0.1215 0.0497)
OKLCHoklch(67.61% 0.131 157.7)
XYZxyz(20.7722, 33.0797, 22.7395)
Luminance0.3308 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF77 #AF4078
analogous
#40AF40 #40AF77 #40AFAF
triadic
#40AF77 #7740AF #AF7740
tetradic
#40AF77 #4040AF #AF4078 #AFAF40
square
#40AF77 #4040AF #AF4078 #AFAF40
split-complementary
#40AF77 #AF40AF #AF4040
monochromatic
#1F553A #308259 #40AF77 #65C796 #92D7B4

Accessibility & contrast

On white

2.76
#40AF77 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#40AF77 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF77
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF77#FFFFFF#000000##000000
##40AF771.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA274
Deuteranopia (green-blind)
#9F977B
Tritanopia (blue-blind)
#00AEA0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40af77;
/* rgb */ color: rgb(64, 175, 119);
/* oklch */ color: oklch(67.6% 0.131 157.7);
Tailwind
colors: {
  custom: {
    50: '#81c89e',
    500: '#40af77',
    950: '#000000',
  },
}
SCSS
$custom: #40af77;
$custom-light: #81c89e;
$custom-dark: #000000;
JSON
{
  "hex": "#40af77",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 119
  },
  "hsl": {
    "h": 149.73,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67611,
    "c": 0.13126,
    "h": 157.7
  },
  "luminance": 0.33082
}

Semantic roles & 50–950 ramp

primary
#40AF77
secondary
#C388A6
accent
#5294D6
background
#F8FCF9
surface
#EFF8F2
border
#CAD1CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #40AF77

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

Preview Lab → · Contrast checker → · Palette generator →

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