#40A12E#40A12E

#40A12E is a light, vivid green. Relative luminance 0.268; OKLCH L 62.8% C 0.176 H 140.8°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#40A12E
RGBrgb(64, 161, 46)
HSLhsl(111, 56%, 41%)
HSVhsv(111, 71%, 63%)
CMYKcmyk(60.2%, 0%, 71.4%, 36.9%)
CIE-LABlab(58.77, -49.97, 49.00)
CIE-LCHlch(58.77, 69.99, 135.56°)
OKLaboklab(62.8% -0.1367 0.1115)
OKLCHoklch(62.8% 0.176 140.8)
XYZxyz(15.3516, 26.7756, 6.9434)
Luminance0.2678 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A12E #8F2EA1
analogous
#79A12E #40A12E #2EA155
triadic
#40A12E #2E40A1 #A12E40
tetradic
#40A12E #2E79A1 #8F2EA1 #A1552E
square
#40A12E #2E79A1 #8F2EA1 #A1552E
split-complementary
#40A12E #552EA1 #A12E79
monochromatic
#1A4213 #2D7120 #40A12E #58C943 #82D773

Accessibility & contrast

On white

3.30
#40A12E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#40A12E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A12E
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A12E#FFFFFF#000000##000000
##40A12E1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5921C
Deuteranopia (green-blind)
#998A39
Tritanopia (blue-blind)
#329C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a12e;
/* rgb */ color: rgb(64, 161, 46);
/* oklch */ color: oklch(62.8% 0.176 140.8);
Tailwind
colors: {
  custom: {
    50: '#80be6e',
    500: '#40a12e',
    950: '#000000',
  },
}
SCSS
$custom: #40a12e;
$custom-light: #80be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#40a12e",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 46
  },
  "hsl": {
    "h": 110.609,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.62798,
    "c": 0.17646,
    "h": 140.8
  },
  "luminance": 0.26777
}

Semantic roles & 50–950 ramp

primary
#40A12E
secondary
#B26CBE
accent
#49DFC7
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A12E

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

Preview Lab → · Contrast checker → · Palette generator →

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