#40A12A#40A12A

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

Color values

HEX#40A12A
RGBrgb(64, 161, 42)
HSLhsl(109, 59%, 40%)
HSVhsv(109, 74%, 63%)
CMYKcmyk(60.2%, 0%, 73.9%, 36.9%)
CIE-LABlab(58.74, -50.30, 50.50)
CIE-LCHlch(58.74, 71.28, 134.88°)
OKLaboklab(62.77% -0.1378 0.1141)
OKLCHoklch(62.77% 0.179 140.4)
XYZxyz(15.2764, 26.7455, 6.5474)
Luminance0.2675 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A12A #8B2AA1
analogous
#7BA12A #40A12A #2AA150
triadic
#40A12A #2A40A1 #A12A40
tetradic
#40A12A #2A7BA1 #8B2AA1 #A1502A
square
#40A12A #2A7BA1 #8B2AA1 #A1502A
split-complementary
#40A12A #502AA1 #A12A7B
monochromatic
#194011 #2D701D #40A12A #57CC3C #81D96D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A12A#FFFFFF#000000##000000
##40A12A1.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)
#A59214
Deuteranopia (green-blind)
#998A36
Tritanopia (blue-blind)
#339C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a12a;
/* rgb */ color: rgb(64, 161, 42);
/* oklch */ color: oklch(62.8% 0.179 140.4);
Tailwind
colors: {
  custom: {
    50: '#80be6b',
    500: '#40a12a',
    950: '#000000',
  },
}
SCSS
$custom: #40a12a;
$custom-light: #80be6b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a12a",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 42
  },
  "hsl": {
    "h": 108.908,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.62766,
    "c": 0.17897,
    "h": 140.4
  },
  "luminance": 0.26747
}

Semantic roles & 50–950 ramp

primary
#40A12A
secondary
#AF67C0
accent
#46E2C5
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A12A

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

Preview Lab → · Contrast checker → · Palette generator →

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