#40A226#40A226

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

Color values

HEX#40A226
RGBrgb(64, 162, 38)
HSLhsl(107, 62%, 39%)
HSVhsv(107, 77%, 64%)
CMYKcmyk(60.5%, 0%, 76.5%, 36.5%)
CIE-LABlab(59.04, -50.95, 52.24)
CIE-LCHlch(59.04, 72.97, 134.29°)
OKLaboklab(63.01% -0.1399 0.1172)
OKLCHoklch(63.01% 0.182 140)
XYZxyz(15.3838, 27.0692, 6.2475)
Luminance0.2707 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A226 #8826A2
analogous
#7EA226 #40A226 #26A24A
triadic
#40A226 #2640A2 #A22640
tetradic
#40A226 #267EA2 #8826A2 #A24A26
square
#40A226 #267EA2 #8826A2 #A24A26
split-complementary
#40A226 #4A26A2 #A2267E
monochromatic
#193F0F #2C701A #40A226 #56D035 #7FDB67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A226#FFFFFF#000000##000000
##40A2261.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79309
Deuteranopia (green-blind)
#9A8B33
Tritanopia (blue-blind)
#339D8A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a226;
/* rgb */ color: rgb(64, 162, 38);
/* oklch */ color: oklch(63.0% 0.182 140.0);
Tailwind
colors: {
  custom: {
    50: '#81be6a',
    500: '#40a226',
    950: '#000000',
  },
}
SCSS
$custom: #40a226;
$custom-light: #81be6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40a226",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 107.419,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63006,
    "c": 0.18247,
    "h": 140
  },
  "luminance": 0.27071
}

Semantic roles & 50–950 ramp

primary
#40A226
secondary
#AD63C1
accent
#43E5C3
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A226

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

Preview Lab → · Contrast checker → · Palette generator →

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