#40AF56#40AF56

#40AF56 is a light, vivid green. Relative luminance 0.324; OKLCH L 67.0% C 0.162 H 147.2°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#40AF56
RGBrgb(64, 175, 86)
HSLhsl(132, 46%, 47%)
HSVhsv(132, 63%, 69%)
CMYKcmyk(63.4%, 0%, 50.9%, 31.4%)
CIE-LABlab(63.69, -50.50, 36.32)
CIE-LCHlch(63.69, 62.21, 144.28°)
OKLaboklab(66.99% -0.1364 0.0878)
OKLCHoklch(66.99% 0.162 147.2)
XYZxyz(19.1227, 32.4199, 14.0522)
Luminance0.3242 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF56 #AF4099
analogous
#62AF40 #40AF56 #40AF8E
triadic
#40AF56 #5640AF #AF5640
tetradic
#40AF56 #4062AF #AF4099 #AF8E40
square
#40AF56 #4062AF #AF4099 #AF8E40
split-complementary
#40AF56 #8E40AF #AF4062
monochromatic
#1F552A #308240 #40AF56 #65C779 #92D7A0

Accessibility & contrast

On white

2.81
#40AF56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#40AF56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF56
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF56#FFFFFF#000000##000000
##40AF561.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A04E
Deuteranopia (green-blind)
#A3965C
Tritanopia (blue-blind)
#21AB9A
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af56;
/* rgb */ color: rgb(64, 175, 86);
/* oklch */ color: oklch(67.0% 0.162 147.2);
Tailwind
colors: {
  custom: {
    50: '#81c887',
    500: '#40af56',
    950: '#000000',
  },
}
SCSS
$custom: #40af56;
$custom-light: #81c887;
$custom-dark: #000000;
JSON
{
  "hex": "#40af56",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 86
  },
  "hsl": {
    "h": 131.892,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66994,
    "c": 0.16225,
    "h": 147.2
  },
  "luminance": 0.32422
}

Semantic roles & 50–950 ramp

primary
#40AF56
secondary
#C388B7
accent
#52BCD6
background
#F8FCF8
surface
#F0F8F0
border
#CBD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40AF56

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

Preview Lab → · Contrast checker → · Palette generator →

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