#40B540#40B540

#40B540 is a light, vivid green. Relative luminance 0.345; OKLCH L 68.3% C 0.188 H 143.2°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#40B540
RGBrgb(64, 181, 64)
HSLhsl(120, 48%, 48%)
HSVhsv(120, 65%, 71%)
CMYKcmyk(64.6%, 0%, 64.6%, 29%)
CIE-LABlab(65.36, -55.49, 48.63)
CIE-LCHlch(65.36, 73.78, 138.77°)
OKLaboklab(68.3% -0.1507 0.1129)
OKLCHoklch(68.3% 0.188 143.2)
XYZxyz(19.5625, 34.5059, 10.4789)
Luminance0.3451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B540 #B540B5
analogous
#7AB540 #40B540 #40B57A
triadic
#40B540 #4040B5 #B54040
tetradic
#40B540 #407AB5 #B540B5 #B57A40
square
#40B540 #407AB5 #B540B5 #B57A40
split-complementary
#40B540 #7A40B5 #B5407A
monochromatic
#205B20 #308830 #40B540 #68CA68 #96DA96

Accessibility & contrast

On white

2.66
#40B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#40B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B540
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B540#FFFFFF#000000##000000
##40B5401.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A532
Deuteranopia (green-blind)
#AB9B4A
Tritanopia (blue-blind)
#26B09D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #40b540;
/* rgb */ color: rgb(64, 181, 64);
/* oklch */ color: oklch(68.3% 0.188 143.2);
Tailwind
colors: {
  custom: {
    50: '#83cc7a',
    500: '#40b540',
    950: '#000000',
  },
}
SCSS
$custom: #40b540;
$custom-light: #83cc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#40b540",
  "rgb": {
    "r": 64,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.68297,
    "c": 0.18828,
    "h": 143.2
  },
  "luminance": 0.34508
}

Semantic roles & 50–950 ramp

primary
#40B540
secondary
#C58BC5
accent
#50D7D7
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B540

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

Preview Lab → · Contrast checker → · Palette generator →

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