#40B04C#40B04C

#40B04C is a light, vivid green. Relative luminance 0.327; OKLCH L 67.1% C 0.172 H 145.1°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#40B04C
RGBrgb(64, 176, 76)
HSLhsl(126, 47%, 47%)
HSVhsv(126, 64%, 69%)
CMYKcmyk(63.6%, 0%, 56.8%, 31%)
CIE-LABlab(63.89, -52.27, 41.47)
CIE-LCHlch(63.89, 66.72, 141.57°)
OKLaboklab(67.12% -0.1415 0.0986)
OKLCHoklch(67.12% 0.172 145.1)
XYZxyz(18.9430, 32.6606, 12.1419)
Luminance0.3266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B04C #B040A4
analogous
#6CB040 #40B04C #40B084
triadic
#40B04C #4C40B0 #B04C40
tetradic
#40B04C #406CB0 #B040A4 #B08440
square
#40B04C #406CB0 #B040A4 #B08440
split-complementary
#40B04C #8440B0 #B0406C
monochromatic
#1F5625 #308339 #40B04C #66C770 #93D89A

Accessibility & contrast

On white

2.79
#40B04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#40B04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B04C
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B04C#FFFFFF#000000##000000
##40B04C1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A142
Deuteranopia (green-blind)
#A59754
Tritanopia (blue-blind)
#25AC9A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #40b04c;
/* rgb */ color: rgb(64, 176, 76);
/* oklch */ color: oklch(67.1% 0.172 145.1);
Tailwind
colors: {
  custom: {
    50: '#82c981',
    500: '#40b04c',
    950: '#000000',
  },
}
SCSS
$custom: #40b04c;
$custom-light: #82c981;
$custom-dark: #000000;
JSON
{
  "hex": "#40b04c",
  "rgb": {
    "r": 64,
    "g": 176,
    "b": 76
  },
  "hsl": {
    "h": 126.429,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.67116,
    "c": 0.17241,
    "h": 145.1
  },
  "luminance": 0.32662
}

Semantic roles & 50–950 ramp

primary
#40B04C
secondary
#C389BD
accent
#51C8D6
background
#F8FCF8
surface
#F0F8EF
border
#CBD1CA
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #40B04C

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

Preview Lab → · Contrast checker → · Palette generator →

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