#40C040#40C040

#40C040 is a light, highly saturated green. Relative luminance 0.392; OKLCH L 71.2% C 0.201 H 143.1°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#40C040
RGBrgb(64, 192, 64)
HSLhsl(120, 50%, 50%)
HSVhsv(120, 67%, 75%)
CMYKcmyk(66.7%, 0%, 66.7%, 24.7%)
CIE-LABlab(68.86, -59.32, 52.46)
CIE-LCHlch(68.86, 79.19, 138.51°)
OKLaboklab(71.2% -0.1611 0.121)
OKLCHoklch(71.2% 0.201 143.1)
XYZxyz(21.8881, 39.1572, 11.2541)
Luminance0.3916 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C040 #C040C0
analogous
#80C040 #40C040 #40C080
triadic
#40C040 #4040C0 #C04040
tetradic
#40C040 #4080C0 #C040C0 #C08040
square
#40C040 #4080C0 #C040C0 #C08040
split-complementary
#40C040 #8040C0 #C04080
monochromatic
#216421 #309230 #40C040 #6ECF6E #9CDE9C

Accessibility & contrast

On white

2.38
#40C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#40C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C040
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C040#FFFFFF#000000##000000
##40C0401.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE2F
Deuteranopia (green-blind)
#B5A44C
Tritanopia (blue-blind)
#20BBA6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #40c040;
/* rgb */ color: rgb(64, 192, 64);
/* oklch */ color: oklch(71.2% 0.201 143.1);
Tailwind
colors: {
  custom: {
    50: '#85d47b',
    500: '#40c040',
    950: '#000000',
  },
}
SCSS
$custom: #40c040;
$custom-light: #85d47b;
$custom-dark: #000000;
JSON
{
  "hex": "#40c040",
  "rgb": {
    "r": 64,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.71196,
    "c": 0.20146,
    "h": 143.1
  },
  "luminance": 0.39159
}

Semantic roles & 50–950 ramp

primary
#40C040
secondary
#CB91CB
accent
#4EDADA
background
#F8FDF7
surface
#F0FAEE
border
#CBD3C9
text
#0C140A
muted
#7D837C

Preview Lab

Preview with #40C040

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

Preview Lab → · Contrast checker → · Palette generator →

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