#40C538#40C538

#40C538 is a light, highly saturated green. Relative luminance 0.413; OKLCH L 72.4% C 0.212 H 142.3°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#40C538
RGBrgb(64, 197, 56)
HSLhsl(117, 56%, 50%)
HSVhsv(117, 72%, 77%)
CMYKcmyk(67.5%, 0%, 71.6%, 22.7%)
CIE-LABlab(70.39, -61.73, 57.20)
CIE-LCHlch(70.39, 84.15, 137.18°)
OKLaboklab(72.44% -0.168 0.13)
OKLCHoklch(72.44% 0.212 142.3)
XYZxyz(22.7931, 41.3056, 10.5122)
Luminance0.4131 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C538 #BD38C5
analogous
#86C538 #40C538 #38C577
triadic
#40C538 #3840C5 #C53840
tetradic
#40C538 #3886C5 #BD38C5 #C57738
square
#40C538 #3886C5 #BD38C5 #C57738
split-complementary
#40C538 #7738C5 #C53886
monochromatic
#21661D #31952A #40C538 #6DD467 #9AE196

Accessibility & contrast

On white

2.27
#40C538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#40C538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C538
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C538#FFFFFF#000000##000000
##40C5381.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB320
Deuteranopia (green-blind)
#BAA846
Tritanopia (blue-blind)
#20BFA9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #40c538;
/* rgb */ color: rgb(64, 197, 56);
/* oklch */ color: oklch(72.4% 0.212 142.3);
Tailwind
colors: {
  custom: {
    50: '#87d877',
    500: '#40c538',
    950: '#000000',
  },
}
SCSS
$custom: #40c538;
$custom-light: #87d877;
$custom-dark: #000000;
JSON
{
  "hex": "#40c538",
  "rgb": {
    "r": 64,
    "g": 197,
    "b": 56
  },
  "hsl": {
    "h": 116.596,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72439,
    "c": 0.21241,
    "h": 142.3
  },
  "luminance": 0.41308
}

Semantic roles & 50–950 ramp

primary
#40C538
secondary
#C98CCD
accent
#49DFD7
background
#F9FDF7
surface
#F1FAEE
border
#CBD3C9
text
#0D1509
muted
#7E837B

Preview Lab

Preview with #40C538

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

Preview Lab → · Contrast checker → · Palette generator →

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