#40D542#40D542

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

Color values

HEX#40D542
RGBrgb(64, 213, 66)
HSLhsl(121, 64%, 54%)
HSVhsv(121, 70%, 84%)
CMYKcmyk(70%, 0%, 69%, 16.5%)
CIE-LABlab(75.49, -66.13, 58.75)
CIE-LCHlch(75.49, 88.46, 138.39°)
OKLaboklab(76.69% -0.1794 0.1344)
OKLCHoklch(76.69% 0.224 143.2)
XYZxyz(26.8903, 49.0689, 13.2073)
Luminance0.4907 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D542 #D540D3
analogous
#89D540 #40D542 #40D58C
triadic
#40D542 #4240D5 #D54240
tetradic
#40D542 #4089D5 #D540D3 #D58C40
square
#40D542 #4089D5 #D540D3 #D58C40
split-complementary
#40D542 #8C40D5 #D54089
monochromatic
#1C7F1D #27B129 #40D542 #72E074 #A4EBA5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40D542#FFFFFF#000000##000000
##40D5421.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)
#D9C12C
Deuteranopia (green-blind)
#C8B550
Tritanopia (blue-blind)
#0CCFB8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #40d542;
/* rgb */ color: rgb(64, 213, 66);
/* oklch */ color: oklch(76.7% 0.224 143.2);
Tailwind
colors: {
  custom: {
    50: '#89e37e',
    500: '#40d542',
    950: '#000000',
  },
}
SCSS
$custom: #40d542;
$custom-light: #89e37e;
$custom-dark: #000000;
JSON
{
  "hex": "#40d542",
  "rgb": {
    "r": 64,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 120.805,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.76694,
    "c": 0.22422,
    "h": 143.2
  },
  "luminance": 0.49072
}

Semantic roles & 50–950 ramp

primary
#40D542
secondary
#D899D7
accent
#41E5E7
background
#F9FEF8
surface
#F2FCEF
border
#CCD5CA
text
#0D160A
muted
#7E847C

Preview Lab

Preview with #40D542

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

Preview Lab → · Contrast checker → · Palette generator →

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