#40C171#40C171

#40C171 is a light, vivid green. Relative luminance 0.404; OKLCH L 72.1% C 0.161 H 152.3°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#40C171
RGBrgb(64, 193, 113)
HSLhsl(143, 51%, 50%)
HSVhsv(143, 67%, 76%)
CMYKcmyk(66.8%, 0%, 41.5%, 24.3%)
CIE-LABlab(69.77, -52.94, 30.25)
CIE-LCHlch(69.77, 60.98, 150.26°)
OKLaboklab(72.13% -0.1429 0.075)
OKLCHoklch(72.13% 0.161 152.3)
XYZxyz(24.1629, 40.4196, 22.1479)
Luminance0.4042 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C171 #C14090
analogous
#4FC140 #40C171 #40C1B2
triadic
#40C171 #7140C1 #C17140
tetradic
#40C171 #404FC1 #C14090 #C1B240
square
#40C171 #404FC1 #C14090 #C1B240
split-complementary
#40C171 #B240C1 #C1404F
monochromatic
#21663B #309456 #40C171 #6ED093 #9CDFB6

Accessibility & contrast

On white

2.31
#40C171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#40C171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C171
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C171#FFFFFF#000000##000000
##40C1711.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1B16B
Deuteranopia (green-blind)
#B1A676
Tritanopia (blue-blind)
#00BEAD
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c171;
/* rgb */ color: rgb(64, 193, 113);
/* oklch */ color: oklch(72.1% 0.161 152.3);
Tailwind
colors: {
  custom: {
    50: '#84d59a',
    500: '#40c171',
    950: '#000000',
  },
}
SCSS
$custom: #40c171;
$custom-light: #84d59a;
$custom-dark: #000000;
JSON
{
  "hex": "#40c171",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 113
  },
  "hsl": {
    "h": 142.791,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.72132,
    "c": 0.16136,
    "h": 152.3
  },
  "luminance": 0.40422
}

Semantic roles & 50–950 ramp

primary
#40C171
secondary
#CB92B5
accent
#4DA5DA
background
#F8FDF9
surface
#F0FAF2
border
#CBD3CC
text
#0C140E
muted
#7D837E

Preview Lab

Preview with #40C171

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

Preview Lab → · Contrast checker → · Palette generator →

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