#40A12C#40A12C

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

Color values

HEX#40A12C
RGBrgb(64, 161, 44)
HSLhsl(110, 57%, 40%)
HSVhsv(110, 73%, 63%)
CMYKcmyk(60.2%, 0%, 72.7%, 36.9%)
CIE-LABlab(58.75, -50.14, 49.76)
CIE-LCHlch(58.75, 70.64, 135.21°)
OKLaboklab(62.78% -0.1373 0.1129)
OKLCHoklch(62.78% 0.178 140.6)
XYZxyz(15.3131, 26.7602, 6.7406)
Luminance0.2676 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A12C #8D2CA1
analogous
#7AA12C #40A12C #2CA153
triadic
#40A12C #2C40A1 #A12C40
tetradic
#40A12C #2C7AA1 #8D2CA1 #A1532C
square
#40A12C #2C7AA1 #8D2CA1 #A1532C
split-complementary
#40A12C #532CA1 #A12C7A
monochromatic
#1A4112 #2D711F #40A12C #57CB40 #81D870

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A12C#FFFFFF#000000##000000
##40A12C1.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)
#A59218
Deuteranopia (green-blind)
#998A38
Tritanopia (blue-blind)
#339C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a12c;
/* rgb */ color: rgb(64, 161, 44);
/* oklch */ color: oklch(62.8% 0.178 140.6);
Tailwind
colors: {
  custom: {
    50: '#80be6c',
    500: '#40a12c',
    950: '#000000',
  },
}
SCSS
$custom: #40a12c;
$custom-light: #80be6c;
$custom-dark: #000000;
JSON
{
  "hex": "#40a12c",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 44
  },
  "hsl": {
    "h": 109.744,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.62781,
    "c": 0.17775,
    "h": 140.6
  },
  "luminance": 0.26762
}

Semantic roles & 50–950 ramp

primary
#40A12C
secondary
#B06ABF
accent
#47E0C6
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A12C

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

Preview Lab → · Contrast checker → · Palette generator →

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