#40AC40#40AC40

#40AC40 is a light, vivid green. Relative luminance 0.310; OKLCH L 65.9% C 0.177 H 143.2°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#40AC40
RGBrgb(64, 172, 64)
HSLhsl(120, 46%, 46%)
HSVhsv(120, 63%, 67%)
CMYKcmyk(62.8%, 0%, 62.8%, 32.5%)
CIE-LABlab(62.48, -52.24, 45.41)
CIE-LCHlch(62.48, 69.22, 139.01°)
OKLaboklab(65.91% -0.1419 0.106)
OKLCHoklch(65.91% 0.177 143.2)
XYZxyz(17.7913, 30.9635, 9.8885)
Luminance0.3096 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AC40 #AC40AC
analogous
#76AC40 #40AC40 #40AC76
triadic
#40AC40 #4040AC #AC4040
tetradic
#40AC40 #4076AC #AC40AC #AC7640
square
#40AC40 #4076AC #AC40AC #AC7640
split-complementary
#40AC40 #7640AC #AC4076
monochromatic
#1F531F #2F7F2F #40AC40 #64C564 #91D691

Accessibility & contrast

On white

2.92
#40AC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#40AC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AC40
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AC40#FFFFFF#000000##000000
##40AC401.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#A29449
Tritanopia (blue-blind)
#2AA795
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #40ac40;
/* rgb */ color: rgb(64, 172, 64);
/* oklch */ color: oklch(65.9% 0.177 143.2);
Tailwind
colors: {
  custom: {
    50: '#81c679',
    500: '#40ac40',
    950: '#000000',
  },
}
SCSS
$custom: #40ac40;
$custom-light: #81c679;
$custom-dark: #000000;
JSON
{
  "hex": "#40ac40",
  "rgb": {
    "r": 64,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.65912,
    "c": 0.17714,
    "h": 143.2
  },
  "luminance": 0.30965
}

Semantic roles & 50–950 ramp

primary
#40AC40
secondary
#C187C1
accent
#52D5D5
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #40AC40

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

Preview Lab → · Contrast checker → · Palette generator →

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