#40D242#40D242

#40D242 is a light, highly saturated green. Relative luminance 0.476; OKLCH L 75.9% C 0.221 H 143.2°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#40D242
RGBrgb(64, 210, 66)
HSLhsl(121, 62%, 54%)
HSVhsv(121, 70%, 82%)
CMYKcmyk(69.5%, 0%, 68.6%, 17.6%)
CIE-LABlab(74.56, -65.16, 57.75)
CIE-LCHlch(74.56, 87.07, 138.45°)
OKLaboklab(75.92% -0.1768 0.1323)
OKLCHoklch(75.92% 0.221 143.2)
XYZxyz(26.1427, 47.5737, 12.9581)
Luminance0.4758 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40D242 #D240D0
analogous
#87D240 #40D242 #40D28B
triadic
#40D242 #4240D2 #D24240
tetradic
#40D242 #4087D2 #D240D0 #D28B40
square
#40D242 #4087D2 #D240D0 #D28B40
split-complementary
#40D242 #8B40D2 #D24087
monochromatic
#1D7B1E #29AC2A #40D242 #72DE73 #A3E9A4

Accessibility & contrast

On white

2.00
#40D242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.52
#40D242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40D242
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40D242#FFFFFF#000000##000000
##40D2421.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF2D
Deuteranopia (green-blind)
#C5B350
Tritanopia (blue-blind)
#10CCB5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #40d242;
/* rgb */ color: rgb(64, 210, 66);
/* oklch */ color: oklch(75.9% 0.221 143.2);
Tailwind
colors: {
  custom: {
    50: '#89e17e',
    500: '#40d242',
    950: '#000000',
  },
}
SCSS
$custom: #40d242;
$custom-light: #89e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#40d242",
  "rgb": {
    "r": 64,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 120.822,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.75916,
    "c": 0.22085,
    "h": 143.2
  },
  "luminance": 0.47577
}

Semantic roles & 50–950 ramp

primary
#40D242
secondary
#D698D5
accent
#43E3E5
background
#F9FDF7
surface
#F1FBEE
border
#CBD4C9
text
#0D150A
muted
#7E837C

Preview Lab

Preview with #40D242

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

Preview Lab → · Contrast checker → · Palette generator →

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