#40B252#40B252

#40B252 is a light, vivid green. Relative luminance 0.335; OKLCH L 67.7% C 0.170 H 146.2°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#40B252
RGBrgb(64, 178, 82)
HSLhsl(129, 47%, 47%)
HSVhsv(129, 64%, 70%)
CMYKcmyk(64%, 0%, 53.9%, 30.2%)
CIE-LABlab(64.59, -52.21, 39.41)
CIE-LCHlch(64.59, 65.42, 142.95°)
OKLaboklab(67.72% -0.1411 0.0945)
OKLCHoklch(67.72% 0.17 146.2)
XYZxyz(19.5564, 33.5380, 13.4239)
Luminance0.3354 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B252 #B240A0
analogous
#67B240 #40B252 #40B28B
triadic
#40B252 #5240B2 #B25240
tetradic
#40B252 #4067B2 #B240A0 #B28B40
square
#40B252 #4067B2 #B240A0 #B28B40
split-complementary
#40B252 #8B40B2 #B24067
monochromatic
#205829 #30853D #40B252 #67C876 #94D89F

Accessibility & contrast

On white

2.72
#40B252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#40B252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B252
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B252#FFFFFF#000000##000000
##40B2521.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A349
Deuteranopia (green-blind)
#A69959
Tritanopia (blue-blind)
#21AE9C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b252;
/* rgb */ color: rgb(64, 178, 82);
/* oklch */ color: oklch(67.7% 0.170 146.2);
Tailwind
colors: {
  custom: {
    50: '#82ca85',
    500: '#40b252',
    950: '#000000',
  },
}
SCSS
$custom: #40b252;
$custom-light: #82ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#40b252",
  "rgb": {
    "r": 64,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 129.474,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.67724,
    "c": 0.1698,
    "h": 146.2
  },
  "luminance": 0.3354
}

Semantic roles & 50–950 ramp

primary
#40B252
secondary
#C48ABB
accent
#51C2D7
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0C130B
muted
#7D827C

Preview Lab

Preview with #40B252

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

Preview Lab → · Contrast checker → · Palette generator →

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