#40B052#40B052

#40B052 is a light, vivid green. Relative luminance 0.328; OKLCH L 67.2% C 0.167 H 146.3°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#40B052
RGBrgb(64, 176, 82)
HSLhsl(130, 47%, 47%)
HSVhsv(130, 64%, 69%)
CMYKcmyk(63.6%, 0%, 53.4%, 31%)
CIE-LABlab(63.96, -51.46, 38.64)
CIE-LCHlch(63.96, 64.35, 143.10°)
OKLaboklab(67.2% -0.1391 0.0928)
OKLCHoklch(67.2% 0.167 146.3)
XYZxyz(19.1614, 32.7479, 13.2922)
Luminance0.3275 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B052 #B0409E
analogous
#66B040 #40B052 #40B08A
triadic
#40B052 #5240B0 #B05240
tetradic
#40B052 #4066B0 #B0409E #B08A40
square
#40B052 #4066B0 #B0409E #B08A40
split-complementary
#40B052 #8A40B0 #B04066
monochromatic
#1F5628 #30833D #40B052 #66C776 #93D89E

Accessibility & contrast

On white

2.78
#40B052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#40B052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B052
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B052#FFFFFF#000000##000000
##40B0521.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A14A
Deuteranopia (green-blind)
#A49759
Tritanopia (blue-blind)
#22AC9B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b052;
/* rgb */ color: rgb(64, 176, 82);
/* oklch */ color: oklch(67.2% 0.167 146.3);
Tailwind
colors: {
  custom: {
    50: '#81c885',
    500: '#40b052',
    950: '#000000',
  },
}
SCSS
$custom: #40b052;
$custom-light: #81c885;
$custom-dark: #000000;
JSON
{
  "hex": "#40b052",
  "rgb": {
    "r": 64,
    "g": 176,
    "b": 82
  },
  "hsl": {
    "h": 129.643,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.67198,
    "c": 0.16718,
    "h": 146.3
  },
  "luminance": 0.3275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40B052

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

Preview Lab → · Contrast checker → · Palette generator →

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