#40C151#40C151

#40C151 is a light, vivid green. Relative luminance 0.398; OKLCH L 71.6% C 0.190 H 145.4°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#40C151
RGBrgb(64, 193, 81)
HSLhsl(128, 51%, 50%)
HSVhsv(128, 67%, 76%)
CMYKcmyk(66.8%, 0%, 58%, 24.3%)
CIE-LABlab(69.34, -57.78, 45.54)
CIE-LCHlch(69.34, 73.57, 141.76°)
OKLaboklab(71.64% -0.1562 0.1078)
OKLCHoklch(71.64% 0.19 145.4)
XYZxyz(22.6680, 39.8216, 14.2747)
Luminance0.3982 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C151 #C140B0
analogous
#6FC140 #40C151 #40C191
triadic
#40C151 #5140C1 #C15140
tetradic
#40C151 #406FC1 #C140B0 #C19140
square
#40C151 #406FC1 #C140B0 #C19140
split-complementary
#40C151 #9140C1 #C1406F
monochromatic
#21662A #30943D #40C151 #6ED07B #9CDFA5

Accessibility & contrast

On white

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

On black

8.96
#40C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C151
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C151#FFFFFF#000000##000000
##40C1511.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B046
Deuteranopia (green-blind)
#B4A55A
Tritanopia (blue-blind)
#17BCA8
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #40c151;
/* rgb */ color: rgb(64, 193, 81);
/* oklch */ color: oklch(71.6% 0.190 145.4);
Tailwind
colors: {
  custom: {
    50: '#85d585',
    500: '#40c151',
    950: '#000000',
  },
}
SCSS
$custom: #40c151;
$custom-light: #85d585;
$custom-dark: #000000;
JSON
{
  "hex": "#40c151",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 127.907,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71643,
    "c": 0.18978,
    "h": 145.4
  },
  "luminance": 0.39824
}

Semantic roles & 50–950 ramp

primary
#40C151
secondary
#CB92C4
accent
#4DC8DA
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #40C151

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

Preview Lab → · Contrast checker → · Palette generator →

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