#40C168#40C168

#40C168 is a light, vivid green. Relative luminance 0.402; OKLCH L 72.0% C 0.170 H 149.9°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#40C168
RGBrgb(64, 193, 104)
HSLhsl(139, 51%, 50%)
HSVhsv(139, 67%, 76%)
CMYKcmyk(66.8%, 0%, 46.1%, 24.3%)
CIE-LABlab(69.63, -54.47, 34.69)
CIE-LCHlch(69.63, 64.58, 147.51°)
OKLaboklab(71.97% -0.1468 0.085)
OKLCHoklch(71.97% 0.17 149.9)
XYZxyz(23.6812, 40.2269, 19.6106)
Luminance0.4023 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C168 #C14099
analogous
#58C140 #40C168 #40C1A9
triadic
#40C168 #6840C1 #C16840
tetradic
#40C168 #4058C1 #C14099 #C1A940
square
#40C168 #4058C1 #C14099 #C1A940
split-complementary
#40C168 #A940C1 #C14058
monochromatic
#216636 #30944F #40C168 #6ED08D #9CDFB1

Accessibility & contrast

On white

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

On black

9.05
#40C168 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C168
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C168#FFFFFF#000000##000000
##40C1681.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2B161
Deuteranopia (green-blind)
#B2A66E
Tritanopia (blue-blind)
#00BEAC
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c168;
/* rgb */ color: rgb(64, 193, 104);
/* oklch */ color: oklch(72.0% 0.170 149.9);
Tailwind
colors: {
  custom: {
    50: '#84d594',
    500: '#40c168',
    950: '#000000',
  },
}
SCSS
$custom: #40c168;
$custom-light: #84d594;
$custom-dark: #000000;
JSON
{
  "hex": "#40c168",
  "rgb": {
    "r": 64,
    "g": 193,
    "b": 104
  },
  "hsl": {
    "h": 138.605,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.71975,
    "c": 0.16967,
    "h": 149.9
  },
  "luminance": 0.40229
}

Semantic roles & 50–950 ramp

primary
#40C168
secondary
#CB92B9
accent
#4DAFDA
background
#F8FDF9
surface
#F0FAF1
border
#CBD3CB
text
#0C140D
muted
#7D837E

Preview Lab

Preview with #40C168

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

Preview Lab → · Contrast checker → · Palette generator →

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