#40D540#40D540

#40D540 is a light, highly saturated green. Relative luminance 0.490; OKLCH L 76.7% C 0.225 H 143.0°. Best body text is #000000 at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#40D540
RGBrgb(64, 213, 64)
HSLhsl(120, 64%, 54%)
HSVhsv(120, 70%, 84%)
CMYKcmyk(70%, 0%, 70%, 16.5%)
CIE-LABlab(75.48, -66.31, 59.49)
CIE-LCHlch(75.48, 89.08, 138.10°)
OKLaboklab(76.68% -0.18 0.1358)
OKLCHoklch(76.68% 0.225 143)
XYZxyz(26.8324, 49.0457, 12.9022)
Luminance0.4905 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D540 #D540D5
analogous
#8BD540 #40D540 #40D58B
triadic
#40D540 #4040D5 #D54040
tetradic
#40D540 #408BD5 #D540D5 #D58B40
square
#40D540 #408BD5 #D540D5 #D58B40
split-complementary
#40D540 #8B40D5 #D5408B
monochromatic
#1C7F1C #27B127 #40D540 #72E072 #A4EBA4

Accessibility & contrast

On white

1.94
#40D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.81
#40D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D540
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D540#FFFFFF#000000##000000
##40D5401.001.9410.8110.81
#FFFFFF1.941.0021.0021.00
#00000010.8121.001.001.00
##00000010.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC129
Deuteranopia (green-blind)
#C8B54F
Tritanopia (blue-blind)
#0DCFB7
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #40d540;
/* rgb */ color: rgb(64, 213, 64);
/* oklch */ color: oklch(76.7% 0.225 143.0);
Tailwind
colors: {
  custom: {
    50: '#89e37d',
    500: '#40d540',
    950: '#000000',
  },
}
SCSS
$custom: #40d540;
$custom-light: #89e37d;
$custom-dark: #000000;
JSON
{
  "hex": "#40d540",
  "rgb": {
    "r": 64,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.76678,
    "c": 0.22547,
    "h": 143
  },
  "luminance": 0.49049
}

Semantic roles & 50–950 ramp

primary
#40D540
secondary
#D899D8
accent
#41E7E7
background
#F9FEF7
surface
#F2FCEE
border
#CCD5C9
text
#0D160A
muted
#7E847C

Preview Lab

Preview with #40D540

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

Preview Lab → · Contrast checker → · Palette generator →

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