#40B040#40B040

#40B040 is a light, vivid green. Relative luminance 0.325; OKLCH L 67.0% C 0.182 H 143.2°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#40B040
RGBrgb(64, 176, 64)
HSLhsl(120, 47%, 47%)
HSVhsv(120, 64%, 69%)
CMYKcmyk(63.6%, 0%, 63.6%, 31%)
CIE-LABlab(63.76, -53.70, 46.85)
CIE-LCHlch(63.76, 71.26, 138.90°)
OKLaboklab(66.97% -0.1458 0.1091)
OKLCHoklch(66.97% 0.182 143.2)
XYZxyz(18.5640, 32.5090, 10.1460)
Luminance0.3251 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B040 #B040B0
analogous
#78B040 #40B040 #40B078
triadic
#40B040 #4040B0 #B04040
tetradic
#40B040 #4078B0 #B040B0 #B07840
square
#40B040 #4078B0 #B040B0 #B07840
split-complementary
#40B040 #7840B0 #B04078
monochromatic
#1F561F #308330 #40B040 #66C766 #93D893

Accessibility & contrast

On white

2.80
#40B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#40B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B040
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B040#FFFFFF#000000##000000
##40B0401.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A033
Deuteranopia (green-blind)
#A6974A
Tritanopia (blue-blind)
#29AB98
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40b040;
/* rgb */ color: rgb(64, 176, 64);
/* oklch */ color: oklch(67.0% 0.182 143.2);
Tailwind
colors: {
  custom: {
    50: '#82c979',
    500: '#40b040',
    950: '#000000',
  },
}
SCSS
$custom: #40b040;
$custom-light: #82c979;
$custom-dark: #000000;
JSON
{
  "hex": "#40b040",
  "rgb": {
    "r": 64,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.66974,
    "c": 0.18213,
    "h": 143.2
  },
  "luminance": 0.32511
}

Semantic roles & 50–950 ramp

primary
#40B040
secondary
#C389C3
accent
#51D6D6
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B040

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

Preview Lab → · Contrast checker → · Palette generator →

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