#40A142#40A142

#40A142 is a light, vivid green. Relative luminance 0.270; OKLCH L 63.0% C 0.161 H 143.7°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#40A142
RGBrgb(64, 161, 66)
HSLhsl(121, 43%, 44%)
HSVhsv(121, 60%, 63%)
CMYKcmyk(60.2%, 0%, 59%, 36.9%)
CIE-LABlab(58.95, -47.89, 40.44)
CIE-LCHlch(58.95, 62.68, 139.82°)
OKLaboklab(63.01% -0.13 0.0955)
OKLCHoklch(63.01% 0.161 143.7)
XYZxyz(15.8417, 26.9716, 9.5244)
Luminance0.2697 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A142 #A1409F
analogous
#6FA140 #40A142 #40A173
triadic
#40A142 #4240A1 #A14240
tetradic
#40A142 #406FA1 #A1409F #A17340
square
#40A142 #406FA1 #A1409F #A17340
split-complementary
#40A142 #7340A1 #A1406F
monochromatic
#1D491E #2F7530 #40A142 #5FBF61 #8BD18C

Accessibility & contrast

On white

3.28
#40A142 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#40A142 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A142
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A142#FFFFFF#000000##000000
##40A1421.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49338
Deuteranopia (green-blind)
#988B49
Tritanopia (blue-blind)
#2E9D8C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a142;
/* rgb */ color: rgb(64, 161, 66);
/* oklch */ color: oklch(63.0% 0.161 143.7);
Tailwind
colors: {
  custom: {
    50: '#7fbe79',
    500: '#40a142',
    950: '#000000',
  },
}
SCSS
$custom: #40a142;
$custom-light: #7fbe79;
$custom-dark: #000000;
JSON
{
  "hex": "#40a142",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 66
  },
  "hsl": {
    "h": 121.237,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.63007,
    "c": 0.16133,
    "h": 143.7
  },
  "luminance": 0.26973
}

Semantic roles & 50–950 ramp

primary
#40A142
secondary
#BC81BA
accent
#55D0D3
background
#F8FBF7
surface
#EFF7EE
border
#CAD0C9
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A142

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

Preview Lab → · Contrast checker → · Palette generator →

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