#40C062#40C062

#40C062 is a light, vivid green. Relative luminance 0.397; OKLCH L 71.6% C 0.174 H 148.6°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#40C062
RGBrgb(64, 192, 98)
HSLhsl(136, 50%, 50%)
HSVhsv(136, 67%, 75%)
CMYKcmyk(66.7%, 0%, 49%, 24.7%)
CIE-LABlab(69.23, -55.05, 37.21)
CIE-LCHlch(69.23, 66.45, 145.95°)
OKLaboklab(71.62% -0.1484 0.0904)
OKLCHoklch(71.62% 0.174 148.6)
XYZxyz(23.1669, 39.6687, 17.9888)
Luminance0.3967 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C062 #C0409E
analogous
#5EC040 #40C062 #40C0A2
triadic
#40C062 #6240C0 #C06240
tetradic
#40C062 #405EC0 #C0409E #C0A240
square
#40C062 #405EC0 #C0409E #C0A240
split-complementary
#40C062 #A240C0 #C0405E
monochromatic
#216433 #30924A #40C062 #6ECF88 #9CDEAE

Accessibility & contrast

On white

2.35
#40C062 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#40C062 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C062
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C062#FFFFFF#000000##000000
##40C0621.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2B05A
Deuteranopia (green-blind)
#B2A569
Tritanopia (blue-blind)
#07BCAA
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #40c062;
/* rgb */ color: rgb(64, 192, 98);
/* oklch */ color: oklch(71.6% 0.174 148.6);
Tailwind
colors: {
  custom: {
    50: '#84d490',
    500: '#40c062',
    950: '#000000',
  },
}
SCSS
$custom: #40c062;
$custom-light: #84d490;
$custom-dark: #000000;
JSON
{
  "hex": "#40c062",
  "rgb": {
    "r": 64,
    "g": 192,
    "b": 98
  },
  "hsl": {
    "h": 135.938,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.71619,
    "c": 0.1738,
    "h": 148.6
  },
  "luminance": 0.39671
}

Semantic roles & 50–950 ramp

primary
#40C062
secondary
#CB91BB
accent
#4EB5DA
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140D
muted
#7D837D

Preview Lab

Preview with #40C062

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

Preview Lab → · Contrast checker → · Palette generator →

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