#40B242#40B242

#40B242 is a light, vivid green. Relative luminance 0.333; OKLCH L 67.5% C 0.183 H 143.5°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#40B242
RGBrgb(64, 178, 66)
HSLhsl(121, 47%, 47%)
HSVhsv(121, 64%, 70%)
CMYKcmyk(64%, 0%, 62.9%, 30.2%)
CIE-LABlab(64.42, -54.20, 46.70)
CIE-LCHlch(64.42, 71.55, 139.25°)
OKLaboklab(67.53% -0.1471 0.109)
OKLCHoklch(67.53% 0.183 143.5)
XYZxyz(19.0170, 33.3222, 10.5828)
Luminance0.3332 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B242 #B240B0
analogous
#77B240 #40B242 #40B27B
triadic
#40B242 #4240B2 #B24240
tetradic
#40B242 #4077B2 #B240B0 #B27B40
square
#40B242 #4077B2 #B240B0 #B27B40
split-complementary
#40B242 #7B40B2 #B24077
monochromatic
#205821 #308531 #40B242 #67C869 #94D895

Accessibility & contrast

On white

2.74
#40B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#40B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B242
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B242#FFFFFF#000000##000000
##40B2421.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A235
Deuteranopia (green-blind)
#A8994B
Tritanopia (blue-blind)
#27AD9A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40b242;
/* rgb */ color: rgb(64, 178, 66);
/* oklch */ color: oklch(67.5% 0.183 143.5);
Tailwind
colors: {
  custom: {
    50: '#82ca7b',
    500: '#40b242',
    950: '#000000',
  },
}
SCSS
$custom: #40b242;
$custom-light: #82ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#40b242",
  "rgb": {
    "r": 64,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 121.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.67525,
    "c": 0.18308,
    "h": 143.5
  },
  "luminance": 0.33324
}

Semantic roles & 50–950 ramp

primary
#40B242
secondary
#C48AC3
accent
#51D4D7
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C130A
muted
#7D827C

Preview Lab

Preview with #40B242

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

Preview Lab → · Contrast checker → · Palette generator →

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