#40AF52#40AF52

#40AF52 is a light, vivid green. Relative luminance 0.324; OKLCH L 66.9% C 0.166 H 146.3°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#40AF52
RGBrgb(64, 175, 82)
HSLhsl(130, 46%, 47%)
HSVhsv(130, 63%, 69%)
CMYKcmyk(63.4%, 0%, 53.1%, 31.4%)
CIE-LABlab(63.64, -51.08, 38.25)
CIE-LCHlch(63.64, 63.82, 143.17°)
OKLaboklab(66.94% -0.1381 0.0919)
OKLCHoklch(66.94% 0.166 146.3)
XYZxyz(18.9661, 32.3572, 13.2271)
Luminance0.3236 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF52 #AF409D
analogous
#65AF40 #40AF52 #40AF8A
triadic
#40AF52 #5240AF #AF5240
tetradic
#40AF52 #4065AF #AF409D #AF8A40
square
#40AF52 #4065AF #AF409D #AF8A40
split-complementary
#40AF52 #8A40AF #AF4065
monochromatic
#1F5528 #30823D #40AF52 #65C775 #92D79D

Accessibility & contrast

On white

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

On black

7.47
#40AF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF52
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF52#FFFFFF#000000##000000
##40AF521.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A04A
Deuteranopia (green-blind)
#A39659
Tritanopia (blue-blind)
#22AB9A
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af52;
/* rgb */ color: rgb(64, 175, 82);
/* oklch */ color: oklch(66.9% 0.166 146.3);
Tailwind
colors: {
  custom: {
    50: '#81c885',
    500: '#40af52',
    950: '#000000',
  },
}
SCSS
$custom: #40af52;
$custom-light: #81c885;
$custom-dark: #000000;
JSON
{
  "hex": "#40af52",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 82
  },
  "hsl": {
    "h": 129.73,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66935,
    "c": 0.16586,
    "h": 146.3
  },
  "luminance": 0.32359
}

Semantic roles & 50–950 ramp

primary
#40AF52
secondary
#C388B9
accent
#52C1D6
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40AF52

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

Preview Lab → · Contrast checker → · Palette generator →

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