#40AF5F#40AF5F

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

Color values

HEX#40AF5F
RGBrgb(64, 175, 95)
HSLhsl(137, 46%, 47%)
HSVhsv(137, 63%, 69%)
CMYKcmyk(63.4%, 0%, 45.7%, 31.4%)
CIE-LABlab(63.81, -49.09, 31.89)
CIE-LCHlch(63.81, 58.54, 146.99°)
OKLaboklab(67.14% -0.1325 0.0782)
OKLCHoklch(67.14% 0.154 149.5)
XYZxyz(19.5084, 32.5742, 16.0836)
Luminance0.3258 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF5F #AF4090
analogous
#58AF40 #40AF5F #40AF97
triadic
#40AF5F #5F40AF #AF5F40
tetradic
#40AF5F #4058AF #AF4090 #AF9740
square
#40AF5F #4058AF #AF4090 #AF9740
split-complementary
#40AF5F #9740AF #AF4058
monochromatic
#1F552E #308247 #40AF5F #65C781 #92D7A5

Accessibility & contrast

On white

2.79
#40AF5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#40AF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF5F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF5F#FFFFFF#000000##000000
##40AF5F1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40af5f;
/* rgb */ color: rgb(64, 175, 95);
/* oklch */ color: oklch(67.1% 0.154 149.5);
Tailwind
colors: {
  custom: {
    50: '#81c88d',
    500: '#40af5f',
    950: '#000000',
  },
}
SCSS
$custom: #40af5f;
$custom-light: #81c88d;
$custom-dark: #000000;
JSON
{
  "hex": "#40af5f",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 95
  },
  "hsl": {
    "h": 136.757,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67139,
    "c": 0.15388,
    "h": 149.5
  },
  "luminance": 0.32576
}

Semantic roles & 50–950 ramp

primary
#40AF5F
secondary
#C388B2
accent
#52B1D6
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #40AF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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