#40AF4E#40AF4E

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

Color values

HEX#40AF4E
RGBrgb(64, 175, 78)
HSLhsl(128, 46%, 47%)
HSVhsv(128, 63%, 69%)
CMYKcmyk(63.4%, 0%, 55.4%, 31.4%)
CIE-LABlab(63.59, -51.64, 40.15)
CIE-LCHlch(63.59, 65.41, 142.13°)
OKLaboklab(66.88% -0.1397 0.0958)
OKLCHoklch(66.88% 0.169 145.5)
XYZxyz(18.8183, 32.2981, 12.4487)
Luminance0.3230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF4E #AF40A1
analogous
#69AF40 #40AF4E #40AF86
triadic
#40AF4E #4E40AF #AF4E40
tetradic
#40AF4E #4069AF #AF40A1 #AF8640
square
#40AF4E #4069AF #AF40A1 #AF8640
split-complementary
#40AF4E #8640AF #AF4069
monochromatic
#1F5526 #30823A #40AF4E #65C772 #92D79B

Accessibility & contrast

On white

2.82
#40AF4E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#40AF4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF4E
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF4E#FFFFFF#000000##000000
##40AF4E1.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A045
Deuteranopia (green-blind)
#A49655
Tritanopia (blue-blind)
#24AB99
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af4e;
/* rgb */ color: rgb(64, 175, 78);
/* oklch */ color: oklch(66.9% 0.169 145.5);
Tailwind
colors: {
  custom: {
    50: '#81c882',
    500: '#40af4e',
    950: '#000000',
  },
}
SCSS
$custom: #40af4e;
$custom-light: #81c882;
$custom-dark: #000000;
JSON
{
  "hex": "#40af4e",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 78
  },
  "hsl": {
    "h": 127.568,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66879,
    "c": 0.16938,
    "h": 145.5
  },
  "luminance": 0.323
}

Semantic roles & 50–950 ramp

primary
#40AF4E
secondary
#C388BB
accent
#52C5D6
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40AF4E

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

Preview Lab → · Contrast checker → · Palette generator →

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