#40A229#40A229

#40A229 is a light, vivid green. Relative luminance 0.271; OKLCH L 63.0% C 0.181 H 140.3°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#40A229
RGBrgb(64, 162, 41)
HSLhsl(109, 60%, 40%)
HSVhsv(109, 75%, 64%)
CMYKcmyk(60.5%, 0%, 74.7%, 36.5%)
CIE-LABlab(59.06, -50.74, 51.19)
CIE-LCHlch(59.06, 72.08, 134.74°)
OKLaboklab(63.03% -0.1391 0.1154)
OKLCHoklch(63.03% 0.181 140.3)
XYZxyz(15.4342, 27.0893, 6.5128)
Luminance0.2709 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A229 #8B29A2
analogous
#7DA229 #40A229 #29A24F
triadic
#40A229 #2940A2 #A22940
tetradic
#40A229 #297DA2 #8B29A2 #A24F29
square
#40A229 #297DA2 #8B29A2 #A24F29
split-complementary
#40A229 #4F29A2 #A2297D
monochromatic
#194010 #2D711D #40A229 #57CD3B #81DA6C

Accessibility & contrast

On white

3.27
#40A229 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#40A229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A229
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A229#FFFFFF#000000##000000
##40A2291.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69311
Deuteranopia (green-blind)
#9A8B36
Tritanopia (blue-blind)
#339D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a229;
/* rgb */ color: rgb(64, 162, 41);
/* oklch */ color: oklch(63.0% 0.181 140.3);
Tailwind
colors: {
  custom: {
    50: '#81be6b',
    500: '#40a229',
    950: '#000000',
  },
}
SCSS
$custom: #40a229;
$custom-light: #81be6b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a229",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 41
  },
  "hsl": {
    "h": 108.595,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63027,
    "c": 0.18076,
    "h": 140.3
  },
  "luminance": 0.27091
}

Semantic roles & 50–950 ramp

primary
#40A229
secondary
#AF67C0
accent
#45E3C5
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A229

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

Preview Lab → · Contrast checker → · Palette generator →

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