#40A642#40A642

#40A642 is a light, vivid green. Relative luminance 0.288; OKLCH L 64.3% C 0.168 H 143.6°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#40A642
RGBrgb(64, 166, 66)
HSLhsl(121, 44%, 45%)
HSVhsv(121, 61%, 65%)
CMYKcmyk(61.4%, 0%, 60.2%, 34.9%)
CIE-LABlab(60.56, -49.79, 42.31)
CIE-LCHlch(60.56, 65.34, 139.64°)
OKLaboklab(64.34% -0.1352 0.0996)
OKLCHoklch(64.34% 0.168 143.6)
XYZxyz(16.7330, 28.7542, 9.8215)
Luminance0.2876 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A642 #A640A4
analogous
#71A640 #40A642 #40A675
triadic
#40A642 #4240A6 #A64240
tetradic
#40A642 #4071A6 #A640A4 #A67540
square
#40A642 #4071A6 #A640A4 #A67540
split-complementary
#40A642 #7540A6 #A64071
monochromatic
#1E4E1F #2F7A30 #40A642 #61C263 #8DD38F

Accessibility & contrast

On white

3.11
#40A642 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#40A642 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A642
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A642#FFFFFF#000000##000000
##40A6421.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99737
Deuteranopia (green-blind)
#9C8F4A
Tritanopia (blue-blind)
#2CA290
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #40a642;
/* rgb */ color: rgb(64, 166, 66);
/* oklch */ color: oklch(64.3% 0.168 143.6);
Tailwind
colors: {
  custom: {
    50: '#80c17a',
    500: '#40a642',
    950: '#000000',
  },
}
SCSS
$custom: #40a642;
$custom-light: #80c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#40a642",
  "rgb": {
    "r": 64,
    "g": 166,
    "b": 66
  },
  "hsl": {
    "h": 121.176,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.6434,
    "c": 0.16788,
    "h": 143.6
  },
  "luminance": 0.28756
}

Semantic roles & 50–950 ramp

primary
#40A642
secondary
#BE84BD
accent
#54D2D4
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A642

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

Preview Lab → · Contrast checker → · Palette generator →

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