#40C252#40C252

#40C252 is a light, vivid green. Relative luminance 0.403; OKLCH L 71.9% C 0.190 H 145.5°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#40C252
RGBrgb(64, 194, 82)
HSLhsl(128, 52%, 51%)
HSVhsv(128, 67%, 76%)
CMYKcmyk(67%, 0%, 57.7%, 23.9%)
CIE-LABlab(69.67, -58.01, 45.46)
CIE-LCHlch(69.67, 73.70, 141.92°)
OKLaboklab(71.92% -0.1568 0.1077)
OKLCHoklch(71.92% 0.19 145.5)
XYZxyz(22.9276, 40.2803, 14.5476)
Luminance0.4028 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C252 #C240B0
analogous
#6FC240 #40C252 #40C293
triadic
#40C252 #5240C2 #C25240
tetradic
#40C252 #406FC2 #C240B0 #C29340
square
#40C252 #406FC2 #C240B0 #C29340
split-complementary
#40C252 #9340C2 #C2406F
monochromatic
#21672B #30953E #40C252 #6ED17C #9DE0A6

Accessibility & contrast

On white

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

On black

9.06
#40C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C252
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C252#FFFFFF#000000##000000
##40C2521.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B147
Deuteranopia (green-blind)
#B5A65B
Tritanopia (blue-blind)
#16BDA9
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #40c252;
/* rgb */ color: rgb(64, 194, 82);
/* oklch */ color: oklch(71.9% 0.190 145.5);
Tailwind
colors: {
  custom: {
    50: '#85d586',
    500: '#40c252',
    950: '#000000',
  },
}
SCSS
$custom: #40c252;
$custom-light: #85d586;
$custom-dark: #000000;
JSON
{
  "hex": "#40c252",
  "rgb": {
    "r": 64,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 128.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.71916,
    "c": 0.1902,
    "h": 145.5
  },
  "luminance": 0.40283
}

Semantic roles & 50–950 ramp

primary
#40C252
secondary
#CC92C4
accent
#4DC7DB
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #40C252

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

Preview Lab → · Contrast checker → · Palette generator →

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