#40AF50#40AF50

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

Color values

HEX#40AF50
RGBrgb(64, 175, 80)
HSLhsl(129, 46%, 47%)
HSVhsv(129, 63%, 69%)
CMYKcmyk(63.4%, 0%, 54.3%, 31.4%)
CIE-LABlab(63.61, -51.36, 39.21)
CIE-LCHlch(63.61, 64.62, 142.64°)
OKLaboklab(66.91% -0.1389 0.0939)
OKLCHoklch(66.91% 0.168 145.9)
XYZxyz(18.8911, 32.3272, 12.8321)
Luminance0.3233 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF50 #AF409F
analogous
#67AF40 #40AF50 #40AF88
triadic
#40AF50 #5040AF #AF5040
tetradic
#40AF50 #4067AF #AF409F #AF8840
square
#40AF50 #4067AF #AF409F #AF8840
split-complementary
#40AF50 #8840AF #AF4067
monochromatic
#1F5527 #30823C #40AF50 #65C773 #92D79C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF50#FFFFFF#000000##000000
##40AF501.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)
#B2A047
Deuteranopia (green-blind)
#A49657
Tritanopia (blue-blind)
#23AB9A
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af50;
/* rgb */ color: rgb(64, 175, 80);
/* oklch */ color: oklch(66.9% 0.168 145.9);
Tailwind
colors: {
  custom: {
    50: '#81c883',
    500: '#40af50',
    950: '#000000',
  },
}
SCSS
$custom: #40af50;
$custom-light: #81c883;
$custom-dark: #000000;
JSON
{
  "hex": "#40af50",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 80
  },
  "hsl": {
    "h": 128.649,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66906,
    "c": 0.16763,
    "h": 145.9
  },
  "luminance": 0.32329
}

Semantic roles & 50–950 ramp

primary
#40AF50
secondary
#C388BA
accent
#52C3D6
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40AF50

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

Preview Lab → · Contrast checker → · Palette generator →

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