#40A12B#40A12B

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

Color values

HEX#40A12B
RGBrgb(64, 161, 43)
HSLhsl(109, 58%, 40%)
HSVhsv(109, 73%, 63%)
CMYKcmyk(60.2%, 0%, 73.3%, 36.9%)
CIE-LABlab(58.74, -50.22, 50.14)
CIE-LCHlch(58.74, 70.96, 135.05°)
OKLaboklab(62.77% -0.1376 0.1135)
OKLCHoklch(62.77% 0.178 140.5)
XYZxyz(15.2946, 26.7528, 6.6428)
Luminance0.2675 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A12B #8C2BA1
analogous
#7BA12B #40A12B #2BA151
triadic
#40A12B #2B40A1 #A12B40
tetradic
#40A12B #2B7BA1 #8C2BA1 #A1512B
square
#40A12B #2B7BA1 #8C2BA1 #A1512B
split-complementary
#40A12B #512BA1 #A12B7B
monochromatic
#1A4011 #2D711E #40A12B #57CB3E #81D86E

Accessibility & contrast

On white

3.31
#40A12B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#40A12B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A12B
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A12B#FFFFFF#000000##000000
##40A12B1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59216
Deuteranopia (green-blind)
#998A37
Tritanopia (blue-blind)
#339C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a12b;
/* rgb */ color: rgb(64, 161, 43);
/* oklch */ color: oklch(62.8% 0.178 140.5);
Tailwind
colors: {
  custom: {
    50: '#80be6c',
    500: '#40a12b',
    950: '#000000',
  },
}
SCSS
$custom: #40a12b;
$custom-light: #80be6c;
$custom-dark: #000000;
JSON
{
  "hex": "#40a12b",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 43
  },
  "hsl": {
    "h": 109.322,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.62773,
    "c": 0.17836,
    "h": 140.5
  },
  "luminance": 0.26754
}

Semantic roles & 50–950 ramp

primary
#40A12B
secondary
#B069BF
accent
#47E1C6
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A12B

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

Preview Lab → · Contrast checker → · Palette generator →

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