#40AF5B#40AF5B

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

Color values

HEX#40AF5B
RGBrgb(64, 175, 91)
HSLhsl(135, 46%, 47%)
HSVhsv(135, 63%, 69%)
CMYKcmyk(63.4%, 0%, 48%, 31.4%)
CIE-LABlab(63.76, -49.74, 33.87)
CIE-LCHlch(63.76, 60.18, 145.74°)
OKLaboklab(67.07% -0.1343 0.0826)
OKLCHoklch(67.07% 0.158 148.4)
XYZxyz(19.3313, 32.5033, 15.1505)
Luminance0.3251 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF5B #AF4094
analogous
#5CAF40 #40AF5B #40AF93
triadic
#40AF5B #5B40AF #AF5B40
tetradic
#40AF5B #405CAF #AF4094 #AF9340
square
#40AF5B #405CAF #AF4094 #AF9340
split-complementary
#40AF5B #9340AF #AF405C
monochromatic
#1F552C #308244 #40AF5B #65C77D #92D7A3

Accessibility & contrast

On white

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

On black

7.50
#40AF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF5B
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF5B#FFFFFF#000000##000000
##40AF5B1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A054
Deuteranopia (green-blind)
#A39761
Tritanopia (blue-blind)
#1EAC9B
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af5b;
/* rgb */ color: rgb(64, 175, 91);
/* oklch */ color: oklch(67.1% 0.158 148.4);
Tailwind
colors: {
  custom: {
    50: '#81c88b',
    500: '#40af5b',
    950: '#000000',
  },
}
SCSS
$custom: #40af5b;
$custom-light: #81c88b;
$custom-dark: #000000;
JSON
{
  "hex": "#40af5b",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 91
  },
  "hsl": {
    "h": 134.595,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67072,
    "c": 0.15763,
    "h": 148.4
  },
  "luminance": 0.32505
}

Semantic roles & 50–950 ramp

primary
#40AF5B
secondary
#C388B4
accent
#52B6D6
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #40AF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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