#40C172#40C172

#40C172 is a light, vivid green. Relative luminance 0.404; OKLCH L 72.2% C 0.160 H 152.6°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#40C172
RGBrgb(64, 193, 114)
HSLhsl(143, 51%, 50%)
HSVhsv(143, 67%, 76%)
CMYKcmyk(66.8%, 0%, 40.9%, 24.3%)
CIE-LABlab(69.78, -52.77, 29.76)
CIE-LCHlch(69.78, 60.58, 150.58°)
OKLaboklab(72.15% -0.1424 0.0738)
OKLCHoklch(72.15% 0.16 152.6)
XYZxyz(24.2195, 40.4422, 22.4461)
Luminance0.4044 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C172 #C1408F
analogous
#4EC140 #40C172 #40C1B3
triadic
#40C172 #7240C1 #C17240
tetradic
#40C172 #404EC1 #C1408F #C1B340
square
#40C172 #404EC1 #C1408F #C1B340
split-complementary
#40C172 #B340C1 #C1404E
monochromatic
#21663C #309457 #40C172 #6ED094 #9CDFB6

Accessibility & contrast

On white

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

On black

9.09
#40C172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C172
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C172#FFFFFF#000000##000000
##40C1721.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40c172;
/* rgb */ color: rgb(64, 193, 114);
/* oklch */ color: oklch(72.2% 0.160 152.6);
Tailwind
colors: {
  custom: {
    50: '#84d59b',
    500: '#40c172',
    950: '#000000',
  },
}
SCSS
$custom: #40c172;
$custom-light: #84d59b;
$custom-dark: #000000;
JSON
{
  "hex": "#40c172",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 114
  },
  "hsl": {
    "h": 143.256,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.7215,
    "c": 0.16043,
    "h": 152.6
  },
  "luminance": 0.40445
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40C172

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

Preview Lab → · Contrast checker → · Palette generator →

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