#40C271#40C271

#40C271 is a light, vivid green. Relative luminance 0.409; OKLCH L 72.4% C 0.163 H 152.2°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#40C271
RGBrgb(64, 194, 113)
HSLhsl(143, 52%, 51%)
HSVhsv(143, 67%, 76%)
CMYKcmyk(67%, 0%, 41.8%, 23.9%)
CIE-LABlab(70.08, -53.33, 30.66)
CIE-LCHlch(70.08, 61.51, 150.10°)
OKLaboklab(72.39% -0.1439 0.0759)
OKLCHoklch(72.39% 0.163 152.2)
XYZxyz(24.3847, 40.8632, 22.2219)
Luminance0.4087 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C271 #C24091
analogous
#50C240 #40C271 #40C2B2
triadic
#40C271 #7140C2 #C27140
tetradic
#40C271 #4050C2 #C24091 #C2B240
square
#40C271 #4050C2 #C24091 #C2B240
split-complementary
#40C271 #B240C2 #C24050
monochromatic
#21673B #309556 #40C271 #6ED193 #9DE0B6

Accessibility & contrast

On white

2.29
#40C271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#40C271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C271
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C271#FFFFFF#000000##000000
##40C2711.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2B26B
Deuteranopia (green-blind)
#B2A776
Tritanopia (blue-blind)
#00BFAE
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #40c271;
/* rgb */ color: rgb(64, 194, 113);
/* oklch */ color: oklch(72.4% 0.163 152.2);
Tailwind
colors: {
  custom: {
    50: '#84d59a',
    500: '#40c271',
    950: '#000000',
  },
}
SCSS
$custom: #40c271;
$custom-light: #84d59a;
$custom-dark: #000000;
JSON
{
  "hex": "#40c271",
  "rgb": {
    "r": 64,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 142.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.72389,
    "c": 0.16269,
    "h": 152.2
  },
  "luminance": 0.40866
}

Semantic roles & 50–950 ramp

primary
#40C271
secondary
#CC92B6
accent
#4DA5DB
background
#F8FDF9
surface
#F0FAF2
border
#CBD3CC
text
#0C140E
muted
#7D837E

Preview Lab

Preview with #40C271

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

Preview Lab → · Contrast checker → · Palette generator →

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