#40C166#40C166

#40C166 is a light, vivid green. Relative luminance 0.402; OKLCH L 71.9% C 0.171 H 149.5°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#40C166
RGBrgb(64, 193, 102)
HSLhsl(138, 51%, 50%)
HSVhsv(138, 67%, 76%)
CMYKcmyk(66.8%, 0%, 47.2%, 24.3%)
CIE-LABlab(69.60, -54.80, 35.67)
CIE-LCHlch(69.60, 65.38, 146.94°)
OKLaboklab(71.94% -0.1477 0.0871)
OKLCHoklch(71.94% 0.171 149.5)
XYZxyz(23.5808, 40.1867, 19.0819)
Luminance0.4019 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C166 #C1409B
analogous
#5BC140 #40C166 #40C1A6
triadic
#40C166 #6640C1 #C16640
tetradic
#40C166 #405BC1 #C1409B #C1A640
square
#40C166 #405BC1 #C1409B #C1A640
split-complementary
#40C166 #A640C1 #C1405B
monochromatic
#216635 #30944D #40C166 #6ED08B #9CDFB0

Accessibility & contrast

On white

2.32
#40C166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#40C166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C166
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C166#FFFFFF#000000##000000
##40C1661.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2B15F
Deuteranopia (green-blind)
#B2A66C
Tritanopia (blue-blind)
#00BEAB
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c166;
/* rgb */ color: rgb(64, 193, 102);
/* oklch */ color: oklch(71.9% 0.171 149.5);
Tailwind
colors: {
  custom: {
    50: '#84d593',
    500: '#40c166',
    950: '#000000',
  },
}
SCSS
$custom: #40c166;
$custom-light: #84d593;
$custom-dark: #000000;
JSON
{
  "hex": "#40c166",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 137.674,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71942,
    "c": 0.17149,
    "h": 149.5
  },
  "luminance": 0.40189
}

Semantic roles & 50–950 ramp

primary
#40C166
secondary
#CB92BA
accent
#4DB1DA
background
#F8FDF9
surface
#F0FAF1
border
#CBD3CB
text
#0C140D
muted
#7D837E

Preview Lab

Preview with #40C166

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

Preview Lab → · Contrast checker → · Palette generator →

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