#40A12F#40A12F

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

Color values

HEX#40A12F
RGBrgb(64, 161, 47)
HSLhsl(111, 55%, 41%)
HSVhsv(111, 71%, 63%)
CMYKcmyk(60.2%, 0%, 70.8%, 36.9%)
CIE-LABlab(58.77, -49.88, 48.61)
CIE-LCHlch(58.77, 69.66, 135.74°)
OKLaboklab(62.81% -0.1364 0.1109)
OKLCHoklch(62.81% 0.176 140.9)
XYZxyz(15.3716, 26.7836, 7.0485)
Luminance0.2678 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A12F #902FA1
analogous
#79A12F #40A12F #2FA157
triadic
#40A12F #2F40A1 #A12F40
tetradic
#40A12F #2F79A1 #902FA1 #A1572F
square
#40A12F #2F79A1 #902FA1 #A1572F
split-complementary
#40A12F #572FA1 #A12F79
monochromatic
#1A4213 #2D7221 #40A12F #58C945 #83D674

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A12F#FFFFFF#000000##000000
##40A12F1.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)
#A5921D
Deuteranopia (green-blind)
#998A3A
Tritanopia (blue-blind)
#329C8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a12f;
/* rgb */ color: rgb(64, 161, 47);
/* oklch */ color: oklch(62.8% 0.176 140.9);
Tailwind
colors: {
  custom: {
    50: '#80be6e',
    500: '#40a12f',
    950: '#000000',
  },
}
SCSS
$custom: #40a12f;
$custom-light: #80be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#40a12f",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 111.053,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.62806,
    "c": 0.17581,
    "h": 140.9
  },
  "luminance": 0.26785
}

Semantic roles & 50–950 ramp

primary
#40A12F
secondary
#B26EBE
accent
#4ADEC8
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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