#40C862#40C862

#40C862 is a light, vivid green. Relative luminance 0.433; OKLCH L 73.7% C 0.184 H 148.0°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#40C862
RGBrgb(64, 200, 98)
HSLhsl(135, 55%, 52%)
HSVhsv(135, 68%, 78%)
CMYKcmyk(68%, 0%, 51%, 21.6%)
CIE-LABlab(71.74, -57.97, 40.33)
CIE-LCHlch(71.74, 70.61, 145.17°)
OKLaboklab(73.69% -0.1562 0.0975)
OKLCHoklch(73.69% 0.184 148)
XYZxyz(24.9714, 43.2777, 18.5903)
Luminance0.4328 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C862 #C840A6
analogous
#62C840 #40C862 #40C8A6
triadic
#40C862 #6240C8 #C86240
tetradic
#40C862 #4062C8 #C840A6 #C8A640
square
#40C862 #4062C8 #C840A6 #C8A640
split-complementary
#40C862 #A640C8 #C84062
monochromatic
#206E33 #2D9D49 #40C862 #70D689 #9FE3B0

Accessibility & contrast

On white

2.17
#40C862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#40C862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C862
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C862#FFFFFF#000000##000000
##40C8621.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB759
Deuteranopia (green-blind)
#BAAB69
Tritanopia (blue-blind)
#00C4B0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #40c862;
/* rgb */ color: rgb(64, 200, 98);
/* oklch */ color: oklch(73.7% 0.184 148.0);
Tailwind
colors: {
  custom: {
    50: '#85da91',
    500: '#40c862',
    950: '#000000',
  },
}
SCSS
$custom: #40c862;
$custom-light: #85da91;
$custom-dark: #000000;
JSON
{
  "hex": "#40c862",
  "rgb": {
    "r": 64,
    "g": 200,
    "b": 98
  },
  "hsl": {
    "h": 135,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.73691,
    "c": 0.18412,
    "h": 148
  },
  "luminance": 0.4328
}

Semantic roles & 50–950 ramp

primary
#40C862
secondary
#D094C1
accent
#49B9DF
background
#F8FDF9
surface
#F0FBF1
border
#CBD4CB
text
#0C150D
muted
#7D837E

Preview Lab

Preview with #40C862

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

Preview Lab → · Contrast checker → · Palette generator →

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