#40A342#40A342

#40A342 is a light, vivid green. Relative luminance 0.277; OKLCH L 63.5% C 0.164 H 143.7°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#40A342
RGBrgb(64, 163, 66)
HSLhsl(121, 44%, 45%)
HSVhsv(121, 61%, 64%)
CMYKcmyk(60.7%, 0%, 59.5%, 36.1%)
CIE-LABlab(59.60, -48.65, 41.19)
CIE-LCHlch(59.60, 63.75, 139.75°)
OKLaboklab(63.54% -0.1321 0.0972)
OKLCHoklch(63.54% 0.164 143.7)
XYZxyz(16.1940, 27.6762, 9.6418)
Luminance0.2768 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A342 #A340A1
analogous
#70A340 #40A342 #40A374
triadic
#40A342 #4240A3 #A34240
tetradic
#40A342 #4070A3 #A340A1 #A37440
square
#40A342 #4070A3 #A340A1 #A37440
split-complementary
#40A342 #7440A3 #A34070
monochromatic
#1D4B1E #2F7730 #40A342 #60C062 #8CD28D

Accessibility & contrast

On white

3.21
#40A342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#40A342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A342
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A342#FFFFFF#000000##000000
##40A3421.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69538
Deuteranopia (green-blind)
#9A8C4A
Tritanopia (blue-blind)
#2D9F8E
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a342;
/* rgb */ color: rgb(64, 163, 66);
/* oklch */ color: oklch(63.5% 0.164 143.7);
Tailwind
colors: {
  custom: {
    50: '#80bf79',
    500: '#40a342',
    950: '#000000',
  },
}
SCSS
$custom: #40a342;
$custom-light: #80bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#40a342",
  "rgb": {
    "r": 64,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 121.212,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.6354,
    "c": 0.16397,
    "h": 143.7
  },
  "luminance": 0.27678
}

Semantic roles & 50–950 ramp

primary
#40A342
secondary
#BD82BB
accent
#54D1D3
background
#F8FBF7
surface
#EFF7EE
border
#CAD0C9
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A342

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

Preview Lab → · Contrast checker → · Palette generator →

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