#40B142#40B142

#40B142 is a light, vivid green. Relative luminance 0.329; OKLCH L 67.3% C 0.182 H 143.5°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#40B142
RGBrgb(64, 177, 66)
HSLhsl(121, 47%, 47%)
HSVhsv(121, 64%, 69%)
CMYKcmyk(63.8%, 0%, 62.7%, 30.6%)
CIE-LABlab(64.10, -53.84, 46.34)
CIE-LCHlch(64.10, 71.04, 139.28°)
OKLaboklab(67.26% -0.1461 0.1082)
OKLCHoklch(67.26% 0.182 143.5)
XYZxyz(18.8188, 32.9258, 10.5168)
Luminance0.3293 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B142 #B140AF
analogous
#77B140 #40B142 #40B17B
triadic
#40B142 #4240B1 #B14240
tetradic
#40B142 #4077B1 #B140AF #B17B40
square
#40B142 #4077B1 #B140AF #B17B40
split-complementary
#40B142 #7B40B1 #B14077
monochromatic
#1F5720 #308431 #40B142 #66C868 #93D895

Accessibility & contrast

On white

2.77
#40B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#40B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B142
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B142#FFFFFF#000000##000000
##40B1421.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A135
Deuteranopia (green-blind)
#A7984B
Tritanopia (blue-blind)
#28AC99
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b142;
/* rgb */ color: rgb(64, 177, 66);
/* oklch */ color: oklch(67.3% 0.182 143.5);
Tailwind
colors: {
  custom: {
    50: '#82c97b',
    500: '#40b142',
    950: '#000000',
  },
}
SCSS
$custom: #40b142;
$custom-light: #82c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#40b142",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 121.062,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.6726,
    "c": 0.18184,
    "h": 143.5
  },
  "luminance": 0.32928
}

Semantic roles & 50–950 ramp

primary
#40B142
secondary
#C389C2
accent
#51D4D7
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B142

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

Preview Lab → · Contrast checker → · Palette generator →

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