#40D142#40D142

#40D142 is a light, highly saturated green. Relative luminance 0.471; OKLCH L 75.7% C 0.220 H 143.2°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#40D142
RGBrgb(64, 209, 66)
HSLhsl(121, 61%, 54%)
HSVhsv(121, 69%, 82%)
CMYKcmyk(69.4%, 0%, 68.4%, 18%)
CIE-LABlab(74.24, -64.83, 57.42)
CIE-LCHlch(74.24, 86.60, 138.47°)
OKLaboklab(75.66% -0.1759 0.1317)
OKLCHoklch(75.66% 0.22 143.2)
XYZxyz(25.8966, 47.0815, 12.8761)
Luminance0.4708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D142 #D140CF
analogous
#86D140 #40D142 #40D18A
triadic
#40D142 #4240D1 #D14240
tetradic
#40D142 #4086D1 #D140CF #D18A40
square
#40D142 #4086D1 #D140CF #D18A40
split-complementary
#40D142 #8A40D1 #D14086
monochromatic
#1D791F #29AB2B #40D142 #71DD73 #A3E9A4

Accessibility & contrast

On white

2.02
#40D142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.42
#40D142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D142
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D142#FFFFFF#000000##000000
##40D1421.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2D
Deuteranopia (green-blind)
#C4B250
Tritanopia (blue-blind)
#11CBB4
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #40d142;
/* rgb */ color: rgb(64, 209, 66);
/* oklch */ color: oklch(75.7% 0.220 143.2);
Tailwind
colors: {
  custom: {
    50: '#89e07d',
    500: '#40d142',
    950: '#000000',
  },
}
SCSS
$custom: #40d142;
$custom-light: #89e07d;
$custom-dark: #000000;
JSON
{
  "hex": "#40d142",
  "rgb": {
    "r": 64,
    "g": 209,
    "b": 66
  },
  "hsl": {
    "h": 120.828,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.75656,
    "c": 0.21973,
    "h": 143.2
  },
  "luminance": 0.47084
}

Semantic roles & 50–950 ramp

primary
#40D142
secondary
#D597D5
accent
#44E2E4
background
#F9FDF7
surface
#F1FBEE
border
#CBD4C9
text
#0D150A
muted
#7E837C

Preview Lab

Preview with #40D142

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

Preview Lab → · Contrast checker → · Palette generator →

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