#40C152#40C152

#40C152 is a light, vivid green. Relative luminance 0.398; OKLCH L 71.7% C 0.189 H 145.5°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#40C152
RGBrgb(64, 193, 82)
HSLhsl(128, 51%, 50%)
HSVhsv(128, 67%, 76%)
CMYKcmyk(66.8%, 0%, 57.5%, 24.3%)
CIE-LABlab(69.35, -57.66, 45.09)
CIE-LCHlch(69.35, 73.19, 141.97°)
OKLaboklab(71.66% -0.1558 0.1069)
OKLCHoklch(71.66% 0.189 145.5)
XYZxyz(22.7058, 39.8367, 14.4737)
Luminance0.3984 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C152 #C140AF
analogous
#6EC140 #40C152 #40C192
triadic
#40C152 #5240C1 #C15240
tetradic
#40C152 #406EC1 #C140AF #C19240
square
#40C152 #406EC1 #C140AF #C19240
split-complementary
#40C152 #9240C1 #C1406E
monochromatic
#21662B #30943E #40C152 #6ED07C #9CDFA6

Accessibility & contrast

On white

2.34
#40C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#40C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C152
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C152#FFFFFF#000000##000000
##40C1521.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B047
Deuteranopia (green-blind)
#B4A55B
Tritanopia (blue-blind)
#17BCA9
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #40c152;
/* rgb */ color: rgb(64, 193, 82);
/* oklch */ color: oklch(71.7% 0.189 145.5);
Tailwind
colors: {
  custom: {
    50: '#85d586',
    500: '#40c152',
    950: '#000000',
  },
}
SCSS
$custom: #40c152;
$custom-light: #85d586;
$custom-dark: #000000;
JSON
{
  "hex": "#40c152",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 128.372,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71655,
    "c": 0.18895,
    "h": 145.5
  },
  "luminance": 0.39839
}

Semantic roles & 50–950 ramp

primary
#40C152
secondary
#CB92C3
accent
#4DC7DA
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #40C152

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

Preview Lab → · Contrast checker → · Palette generator →

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