#40D940#40D940

#40D940 is a light, highly saturated green. Relative luminance 0.511; OKLCH L 77.7% C 0.230 H 143.0°. Best body text is #000000 at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#40D940
RGBrgb(64, 217, 64)
HSLhsl(120, 67%, 55%)
HSVhsv(120, 71%, 85%)
CMYKcmyk(70.5%, 0%, 70.5%, 14.9%)
CIE-LABlab(76.73, -67.59, 60.79)
CIE-LCHlch(76.73, 90.91, 138.03°)
OKLaboklab(77.71% -0.1835 0.1385)
OKLCHoklch(77.71% 0.23 143)
XYZxyz(27.8509, 51.0828, 13.2417)
Luminance0.5109 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D940 #D940D9
analogous
#8CD940 #40D940 #40D98C
triadic
#40D940 #4040D9 #D94040
tetradic
#40D940 #408CD9 #D940D9 #D98C40
square
#40D940 #408CD9 #D940D9 #D98C40
split-complementary
#40D940 #8C40D9 #D9408C
monochromatic
#1A841A #24B724 #40D940 #73E373 #A6EDA6

Accessibility & contrast

On white

1.87
#40D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.22
#40D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D940
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D940#FFFFFF#000000##000000
##40D9401.001.8711.2211.22
#FFFFFF1.871.0021.0021.00
#00000011.2221.001.001.00
##00000011.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC527
Deuteranopia (green-blind)
#CCB94F
Tritanopia (blue-blind)
#06D3BB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #40d940;
/* rgb */ color: rgb(64, 217, 64);
/* oklch */ color: oklch(77.7% 0.230 143.0);
Tailwind
colors: {
  custom: {
    50: '#8ae67d',
    500: '#40d940',
    950: '#000000',
  },
}
SCSS
$custom: #40d940;
$custom-light: #8ae67d;
$custom-dark: #000000;
JSON
{
  "hex": "#40d940",
  "rgb": {
    "r": 64,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.77714,
    "c": 0.22989,
    "h": 143
  },
  "luminance": 0.51086
}

Semantic roles & 50–950 ramp

primary
#40D940
secondary
#8B328B
accent
#3EEAEA
background
#FCFEFB
surface
#F5FDF2
border
#CFD5CC
text
#0E160A
muted
#7F847D

Preview Lab

Preview with #40D940

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

Preview Lab → · Contrast checker → · Palette generator →

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