#40B152#40B152

#40B152 is a light, vivid green. Relative luminance 0.331; OKLCH L 67.5% C 0.169 H 146.2°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#40B152
RGBrgb(64, 177, 82)
HSLhsl(130, 47%, 47%)
HSVhsv(130, 64%, 69%)
CMYKcmyk(63.8%, 0%, 53.7%, 30.6%)
CIE-LABlab(64.28, -51.84, 39.03)
CIE-LCHlch(64.28, 64.89, 143.02°)
OKLaboklab(67.46% -0.1401 0.0936)
OKLCHoklch(67.46% 0.169 146.2)
XYZxyz(19.3582, 33.1415, 13.3578)
Luminance0.3314 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B152 #B1409F
analogous
#66B140 #40B152 #40B18B
triadic
#40B152 #5240B1 #B15240
tetradic
#40B152 #4066B1 #B1409F #B18B40
square
#40B152 #4066B1 #B1409F #B18B40
split-complementary
#40B152 #8B40B1 #B14066
monochromatic
#1F5728 #30843D #40B152 #66C876 #93D89E

Accessibility & contrast

On white

2.75
#40B152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#40B152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B152
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B152#FFFFFF#000000##000000
##40B1521.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A249
Deuteranopia (green-blind)
#A59859
Tritanopia (blue-blind)
#21AD9B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40b152;
/* rgb */ color: rgb(64, 177, 82);
/* oklch */ color: oklch(67.5% 0.169 146.2);
Tailwind
colors: {
  custom: {
    50: '#82c985',
    500: '#40b152',
    950: '#000000',
  },
}
SCSS
$custom: #40b152;
$custom-light: #82c985;
$custom-dark: #000000;
JSON
{
  "hex": "#40b152",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 129.558,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.67461,
    "c": 0.1685,
    "h": 146.2
  },
  "luminance": 0.33143
}

Semantic roles & 50–950 ramp

primary
#40B152
secondary
#C389BA
accent
#51C1D7
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #40B152

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

Preview Lab → · Contrast checker → · Palette generator →

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