#40AF5E#40AF5E

#40AF5E is a light, vivid green. Relative luminance 0.326; OKLCH L 67.1% C 0.155 H 149.2°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#40AF5E
RGBrgb(64, 175, 94)
HSLhsl(136, 46%, 47%)
HSVhsv(136, 63%, 69%)
CMYKcmyk(63.4%, 0%, 46.3%, 31.4%)
CIE-LABlab(63.80, -49.25, 32.39)
CIE-LCHlch(63.80, 58.95, 146.67°)
OKLaboklab(67.12% -0.133 0.0793)
OKLCHoklch(67.12% 0.155 149.2)
XYZxyz(19.4633, 32.5561, 15.8458)
Luminance0.3256 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF5E #AF4091
analogous
#5AAF40 #40AF5E #40AF96
triadic
#40AF5E #5E40AF #AF5E40
tetradic
#40AF5E #405AAF #AF4091 #AF9640
square
#40AF5E #405AAF #AF4091 #AF9640
split-complementary
#40AF5E #9640AF #AF405A
monochromatic
#1F552E #308246 #40AF5E #65C780 #92D7A5

Accessibility & contrast

On white

2.80
#40AF5E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#40AF5E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF5E
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF5E#FFFFFF#000000##000000
##40AF5E1.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A158
Deuteranopia (green-blind)
#A29764
Tritanopia (blue-blind)
#1CAC9C
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40af5e;
/* rgb */ color: rgb(64, 175, 94);
/* oklch */ color: oklch(67.1% 0.155 149.2);
Tailwind
colors: {
  custom: {
    50: '#81c88d',
    500: '#40af5e',
    950: '#000000',
  },
}
SCSS
$custom: #40af5e;
$custom-light: #81c88d;
$custom-dark: #000000;
JSON
{
  "hex": "#40af5e",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 94
  },
  "hsl": {
    "h": 136.216,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67122,
    "c": 0.15483,
    "h": 149.2
  },
  "luminance": 0.32558
}

Semantic roles & 50–950 ramp

primary
#40AF5E
secondary
#C388B3
accent
#52B2D6
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #40AF5E

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

Preview Lab → · Contrast checker → · Palette generator →

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