#40B342#40B342

#40B342 is a light, vivid green. Relative luminance 0.337; OKLCH L 67.8% C 0.184 H 143.5°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#40B342
RGBrgb(64, 179, 66)
HSLhsl(121, 47%, 48%)
HSVhsv(121, 64%, 70%)
CMYKcmyk(64.2%, 0%, 63.1%, 29.8%)
CIE-LABlab(64.74, -54.56, 47.06)
CIE-LCHlch(64.74, 72.05, 139.22°)
OKLaboklab(67.79% -0.1481 0.1098)
OKLCHoklch(67.79% 0.184 143.5)
XYZxyz(19.2167, 33.7216, 10.6494)
Luminance0.3372 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B342 #B340B1
analogous
#78B340 #40B342 #40B37B
triadic
#40B342 #4240B3 #B34240
tetradic
#40B342 #4078B3 #B340B1 #B37B40
square
#40B342 #4078B3 #B340B1 #B37B40
split-complementary
#40B342 #7B40B3 #B34078
monochromatic
#205921 #308631 #40B342 #67C969 #94D996

Accessibility & contrast

On white

2.71
#40B342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#40B342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B342
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B342#FFFFFF#000000##000000
##40B3421.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A335
Deuteranopia (green-blind)
#A9994C
Tritanopia (blue-blind)
#27AE9B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b342;
/* rgb */ color: rgb(64, 179, 66);
/* oklch */ color: oklch(67.8% 0.184 143.5);
Tailwind
colors: {
  custom: {
    50: '#83cb7b',
    500: '#40b342',
    950: '#000000',
  },
}
SCSS
$custom: #40b342;
$custom-light: #83cb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#40b342",
  "rgb": {
    "r": 64,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 121.043,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.6779,
    "c": 0.18433,
    "h": 143.5
  },
  "luminance": 0.33724
}

Semantic roles & 50–950 ramp

primary
#40B342
secondary
#C48AC3
accent
#51D5D7
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0C130A
muted
#7D827C

Preview Lab

Preview with #40B342

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

Preview Lab → · Contrast checker → · Palette generator →

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