#40D942#40D942

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

Color values

HEX#40D942
RGBrgb(64, 217, 66)
HSLhsl(121, 67%, 55%)
HSVhsv(121, 71%, 85%)
CMYKcmyk(70.5%, 0%, 69.6%, 14.9%)
CIE-LABlab(76.74, -67.42, 60.06)
CIE-LCHlch(76.74, 90.29, 138.31°)
OKLaboklab(77.73% -0.1829 0.1372)
OKLCHoklch(77.73% 0.229 143.1)
XYZxyz(27.9089, 51.1060, 13.5468)
Luminance0.5111 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D942 #D940D7
analogous
#8BD940 #40D942 #40D98E
triadic
#40D942 #4240D9 #D94240
tetradic
#40D942 #408BD9 #D940D7 #D98E40
square
#40D942 #408BD9 #D940D7 #D98E40
split-complementary
#40D942 #8E40D9 #D9408B
monochromatic
#1A841C #24B726 #40D942 #73E375 #A6EDA7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40D942#FFFFFF#000000##000000
##40D9421.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)
#DEC52B
Deuteranopia (green-blind)
#CCB951
Tritanopia (blue-blind)
#05D3BB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #40d942;
/* rgb */ color: rgb(64, 217, 66);
/* oklch */ color: oklch(77.7% 0.229 143.1);
Tailwind
colors: {
  custom: {
    50: '#8ae67e',
    500: '#40d942',
    950: '#000000',
  },
}
SCSS
$custom: #40d942;
$custom-light: #8ae67e;
$custom-dark: #000000;
JSON
{
  "hex": "#40d942",
  "rgb": {
    "r": 64,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 120.784,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.7773,
    "c": 0.22867,
    "h": 143.1
  },
  "luminance": 0.51109
}

Semantic roles & 50–950 ramp

primary
#40D942
secondary
#8B328A
accent
#3EE7EA
background
#FCFEFB
surface
#F4FDF2
border
#CED5CC
text
#0D160A
muted
#7F847D

Preview Lab

Preview with #40D942

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

Preview Lab → · Contrast checker → · Palette generator →

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