#40A228#40A228

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

Color values

HEX#40A228
RGBrgb(64, 162, 40)
HSLhsl(108, 60%, 40%)
HSVhsv(108, 75%, 64%)
CMYKcmyk(60.5%, 0%, 75.3%, 36.5%)
CIE-LABlab(59.05, -50.81, 51.55)
CIE-LCHlch(59.05, 72.38, 134.59°)
OKLaboklab(63.02% -0.1394 0.116)
OKLCHoklch(63.02% 0.181 140.2)
XYZxyz(15.4170, 27.0824, 6.4221)
Luminance0.2708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A228 #8A28A2
analogous
#7DA228 #40A228 #28A24D
triadic
#40A228 #2840A2 #A22840
tetradic
#40A228 #287DA2 #8A28A2 #A24D28
square
#40A228 #287DA2 #8A28A2 #A24D28
split-complementary
#40A228 #4D28A2 #A2287D
monochromatic
#194010 #2D711C #40A228 #56CE39 #80DA6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A228#FFFFFF#000000##000000
##40A2281.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)
#A6930F
Deuteranopia (green-blind)
#9A8B35
Tritanopia (blue-blind)
#339D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a228;
/* rgb */ color: rgb(64, 162, 40);
/* oklch */ color: oklch(63.0% 0.181 140.2);
Tailwind
colors: {
  custom: {
    50: '#81be6b',
    500: '#40a228',
    950: '#000000',
  },
}
SCSS
$custom: #40a228;
$custom-light: #81be6b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a228",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 108.197,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6302,
    "c": 0.18135,
    "h": 140.2
  },
  "luminance": 0.27084
}

Semantic roles & 50–950 ramp

primary
#40A228
secondary
#AF65C1
accent
#44E4C4
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A228

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

Preview Lab → · Contrast checker → · Palette generator →

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