#40C052#40C052

#40C052 is a light, vivid green. Relative luminance 0.394; OKLCH L 71.4% C 0.188 H 145.6°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#40C052
RGBrgb(64, 192, 82)
HSLhsl(128, 50%, 50%)
HSVhsv(128, 67%, 75%)
CMYKcmyk(66.7%, 0%, 57.3%, 24.7%)
CIE-LABlab(69.04, -57.30, 44.72)
CIE-LCHlch(69.04, 72.69, 142.03°)
OKLaboklab(71.39% -0.1548 0.1061)
OKLCHoklch(71.39% 0.188 145.6)
XYZxyz(22.4855, 39.3961, 14.4002)
Luminance0.3940 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C052 #C040AE
analogous
#6EC040 #40C052 #40C092
triadic
#40C052 #5240C0 #C05240
tetradic
#40C052 #406EC0 #C040AE #C09240
square
#40C052 #406EC0 #C040AE #C09240
split-complementary
#40C052 #9240C0 #C0406E
monochromatic
#21642B #30923E #40C052 #6ECF7C #9CDEA5

Accessibility & contrast

On white

2.36
#40C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#40C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C052
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C052#FFFFFF#000000##000000
##40C0521.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF47
Deuteranopia (green-blind)
#B3A45B
Tritanopia (blue-blind)
#17BBA8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #40c052;
/* rgb */ color: rgb(64, 192, 82);
/* oklch */ color: oklch(71.4% 0.188 145.6);
Tailwind
colors: {
  custom: {
    50: '#84d486',
    500: '#40c052',
    950: '#000000',
  },
}
SCSS
$custom: #40c052;
$custom-light: #84d486;
$custom-dark: #000000;
JSON
{
  "hex": "#40c052",
  "rgb": {
    "r": 64,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 128.438,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.71394,
    "c": 0.1877,
    "h": 145.6
  },
  "luminance": 0.39398
}

Semantic roles & 50–950 ramp

primary
#40C052
secondary
#CB91C2
accent
#4EC6DA
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #40C052

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

Preview Lab → · Contrast checker → · Palette generator →

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