#40C158#40C158

#40C158 is a light, vivid green. Relative luminance 0.399; OKLCH L 71.7% C 0.184 H 146.6°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#40C158
RGBrgb(64, 193, 88)
HSLhsl(131, 51%, 50%)
HSVhsv(131, 67%, 76%)
CMYKcmyk(66.8%, 0%, 54.4%, 24.3%)
CIE-LABlab(69.42, -56.87, 42.34)
CIE-LCHlch(69.42, 70.90, 143.33°)
OKLaboklab(71.73% -0.1535 0.1013)
OKLCHoklch(71.73% 0.184 146.6)
XYZxyz(22.9442, 39.9321, 15.7291)
Luminance0.3993 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C158 #C140A9
analogous
#68C140 #40C158 #40C199
triadic
#40C158 #5840C1 #C15840
tetradic
#40C158 #4068C1 #C140A9 #C19940
square
#40C158 #4068C1 #C140A9 #C19940
split-complementary
#40C158 #9940C1 #C14068
monochromatic
#21662E #309443 #40C158 #6ED080 #9CDFA9

Accessibility & contrast

On white

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

On black

8.99
#40C158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C158
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C158#FFFFFF#000000##000000
##40C1581.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B04E
Deuteranopia (green-blind)
#B4A560
Tritanopia (blue-blind)
#12BDA9
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #40c158;
/* rgb */ color: rgb(64, 193, 88);
/* oklch */ color: oklch(71.7% 0.184 146.6);
Tailwind
colors: {
  custom: {
    50: '#84d58a',
    500: '#40c158',
    950: '#000000',
  },
}
SCSS
$custom: #40c158;
$custom-light: #84d58a;
$custom-dark: #000000;
JSON
{
  "hex": "#40c158",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 131.163,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71733,
    "c": 0.18391,
    "h": 146.6
  },
  "luminance": 0.39934
}

Semantic roles & 50–950 ramp

primary
#40C158
secondary
#CB92C0
accent
#4DC0DA
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140C
muted
#7D837D

Preview Lab

Preview with #40C158

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

Preview Lab → · Contrast checker → · Palette generator →

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