#40B840#40B840

#40B840 is a light, vivid green. Relative luminance 0.357; OKLCH L 69.1% C 0.192 H 143.1°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#40B840
RGBrgb(64, 184, 64)
HSLhsl(120, 48%, 49%)
HSVhsv(120, 65%, 72%)
CMYKcmyk(65.2%, 0%, 65.2%, 27.8%)
CIE-LABlab(66.32, -56.55, 49.68)
CIE-LCHlch(66.32, 75.27, 138.70°)
OKLaboklab(69.09% -0.1536 0.1151)
OKLCHoklch(69.09% 0.192 143.1)
XYZxyz(20.1791, 35.7391, 10.6844)
Luminance0.3574 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B840 #B840B8
analogous
#7CB840 #40B840 #40B87C
triadic
#40B840 #4040B8 #B84040
tetradic
#40B840 #407CB8 #B840B8 #B87C40
square
#40B840 #407CB8 #B840B8 #B87C40
split-complementary
#40B840 #7C40B8 #B8407C
monochromatic
#205D20 #308B30 #40B840 #6ACB6A #97DB97

Accessibility & contrast

On white

2.58
#40B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#40B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B840
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B840#FFFFFF#000000##000000
##40B8401.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA731
Deuteranopia (green-blind)
#AD9D4B
Tritanopia (blue-blind)
#25B39F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #40b840;
/* rgb */ color: rgb(64, 184, 64);
/* oklch */ color: oklch(69.1% 0.192 143.1);
Tailwind
colors: {
  custom: {
    50: '#84ce7a',
    500: '#40b840',
    950: '#000000',
  },
}
SCSS
$custom: #40b840;
$custom-light: #84ce7a;
$custom-dark: #000000;
JSON
{
  "hex": "#40b840",
  "rgb": {
    "r": 64,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.6909,
    "c": 0.19192,
    "h": 143.1
  },
  "luminance": 0.35741
}

Semantic roles & 50–950 ramp

primary
#40B840
secondary
#C78DC7
accent
#50D8D8
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0C1409
muted
#7D827B

Preview Lab

Preview with #40B840

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

Preview Lab → · Contrast checker → · Palette generator →

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