#40A128#40A128

#40A128 is a light, vivid green. Relative luminance 0.267; OKLCH L 62.8% C 0.180 H 140.2°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#40A128
RGBrgb(64, 161, 40)
HSLhsl(108, 60%, 39%)
HSVhsv(108, 75%, 63%)
CMYKcmyk(60.2%, 0%, 75.2%, 36.9%)
CIE-LABlab(58.73, -50.45, 51.22)
CIE-LCHlch(58.73, 71.89, 134.56°)
OKLaboklab(62.75% -0.1384 0.1154)
OKLCHoklch(62.75% 0.18 140.2)
XYZxyz(15.2415, 26.7315, 6.3636)
Luminance0.2673 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A128 #8928A1
analogous
#7DA128 #40A128 #28A14D
triadic
#40A128 #2840A1 #A12840
tetradic
#40A128 #287DA1 #8928A1 #A14D28
square
#40A128 #287DA1 #8928A1 #A14D28
split-complementary
#40A128 #4D28A1 #A1287D
monochromatic
#193F10 #2D701C #40A128 #56CE39 #80DA6A

Accessibility & contrast

On white

3.31
#40A128 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#40A128 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A128
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A128#FFFFFF#000000##000000
##40A1281.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5920F
Deuteranopia (green-blind)
#998A35
Tritanopia (blue-blind)
#339C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a128;
/* rgb */ color: rgb(64, 161, 40);
/* oklch */ color: oklch(62.8% 0.180 140.2);
Tailwind
colors: {
  custom: {
    50: '#80be6a',
    500: '#40a128',
    950: '#000000',
  },
}
SCSS
$custom: #40a128;
$custom-light: #80be6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40a128",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 108.099,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.62751,
    "c": 0.18016,
    "h": 140.2
  },
  "luminance": 0.26733
}

Semantic roles & 50–950 ramp

primary
#40A128
secondary
#AE65C0
accent
#44E3C4
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A128

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

Preview Lab → · Contrast checker → · Palette generator →

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