#40A221#40A221

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

Color values

HEX#40A221
RGBrgb(64, 162, 33)
HSLhsl(106, 66%, 38%)
HSVhsv(106, 80%, 64%)
CMYKcmyk(60.5%, 0%, 79.6%, 36.5%)
CIE-LABlab(59.01, -51.28, 53.86)
CIE-LCHlch(59.01, 74.37, 133.60°)
OKLaboklab(62.97% -0.141 0.1199)
OKLCHoklch(62.97% 0.185 139.6)
XYZxyz(15.3085, 27.0391, 5.8509)
Luminance0.2704 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A221 #8321A2
analogous
#80A221 #40A221 #21A242
triadic
#40A221 #2140A2 #A22140
tetradic
#40A221 #2180A2 #8321A2 #A24221
square
#40A221 #2180A2 #8321A2 #A24221
split-complementary
#40A221 #4221A2 #A22180
monochromatic
#183C0C #2C6F17 #40A221 #54D42C #7EDE5F

Accessibility & contrast

On white

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

On black

6.41
#40A221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A221
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A221#FFFFFF#000000##000000
##40A2211.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#9B8B30
Tritanopia (blue-blind)
#349C8A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a221;
/* rgb */ color: rgb(64, 162, 33);
/* oklch */ color: oklch(63.0% 0.185 139.6);
Tailwind
colors: {
  custom: {
    50: '#81be67',
    500: '#40a221',
    950: '#000000',
  },
}
SCSS
$custom: #40a221;
$custom-light: #81be67;
$custom-dark: #000000;
JSON
{
  "hex": "#40a221",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 33
  },
  "hsl": {
    "h": 105.581,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.62974,
    "c": 0.18507,
    "h": 139.6
  },
  "luminance": 0.2704
}

Semantic roles & 50–950 ramp

primary
#40A221
secondary
#AA5CC3
accent
#3FE9C0
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A221

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

Preview Lab → · Contrast checker → · Palette generator →

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