#40AF5D#40AF5D

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

Color values

HEX#40AF5D
RGBrgb(64, 175, 93)
HSLhsl(136, 46%, 47%)
HSVhsv(136, 63%, 69%)
CMYKcmyk(63.4%, 0%, 46.9%, 31.4%)
CIE-LABlab(63.79, -49.42, 32.88)
CIE-LCHlch(63.79, 59.36, 146.36°)
OKLaboklab(67.11% -0.1334 0.0804)
OKLCHoklch(67.11% 0.156 148.9)
XYZxyz(19.4187, 32.5383, 15.6110)
Luminance0.3254 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF5D #AF4092
analogous
#5AAF40 #40AF5D #40AF95
triadic
#40AF5D #5D40AF #AF5D40
tetradic
#40AF5D #405AAF #AF4092 #AF9540
square
#40AF5D #405AAF #AF4092 #AF9540
split-complementary
#40AF5D #9540AF #AF405A
monochromatic
#1F552D #308245 #40AF5D #65C77F #92D7A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF5D#FFFFFF#000000##000000
##40AF5D1.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)
#B0A057
Deuteranopia (green-blind)
#A29763
Tritanopia (blue-blind)
#1CAC9B
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af5d;
/* rgb */ color: rgb(64, 175, 93);
/* oklch */ color: oklch(67.1% 0.156 148.9);
Tailwind
colors: {
  custom: {
    50: '#81c88c',
    500: '#40af5d',
    950: '#000000',
  },
}
SCSS
$custom: #40af5d;
$custom-light: #81c88c;
$custom-dark: #000000;
JSON
{
  "hex": "#40af5d",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 93
  },
  "hsl": {
    "h": 135.676,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67105,
    "c": 0.15576,
    "h": 148.9
  },
  "luminance": 0.3254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40AF5D

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

Preview Lab → · Contrast checker → · Palette generator →

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