#40A11F#40A11F

#40A11F is a light, vivid green. Relative luminance 0.267; OKLCH L 62.7% C 0.185 H 139.4°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#40A11F
RGBrgb(64, 161, 31)
HSLhsl(105, 68%, 38%)
HSVhsv(105, 81%, 63%)
CMYKcmyk(60.2%, 0%, 80.7%, 36.9%)
CIE-LABlab(58.67, -51.04, 54.15)
CIE-LCHlch(58.67, 74.41, 133.30°)
OKLaboklab(62.69% -0.1405 0.1202)
OKLCHoklch(62.69% 0.185 139.4)
XYZxyz(15.1059, 26.6773, 5.6492)
Luminance0.2668 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A11F #801FA1
analogous
#81A11F #40A11F #1FA13F
triadic
#40A11F #1F40A1 #A11F40
tetradic
#40A11F #1F81A1 #801FA1 #A13F1F
square
#40A11F #1F81A1 #801FA1 #A13F1F
split-complementary
#40A11F #3F1FA1 #A11F81
monochromatic
#173A0B #2C6E15 #40A11F #54D429 #7DDF5B

Accessibility & contrast

On white

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

On black

6.34
#40A11F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A11F
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A11F#FFFFFF#000000##000000
##40A11F1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#9A8A2F
Tritanopia (blue-blind)
#349B89
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a11f;
/* rgb */ color: rgb(64, 161, 31);
/* oklch */ color: oklch(62.7% 0.185 139.4);
Tailwind
colors: {
  custom: {
    50: '#81be66',
    500: '#40a11f',
    950: '#000000',
  },
}
SCSS
$custom: #40a11f;
$custom-light: #81be66;
$custom-dark: #000000;
JSON
{
  "hex": "#40a11f",
  "rgb": {
    "r": 64,
    "g": 161,
    "b": 31
  },
  "hsl": {
    "h": 104.769,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.62693,
    "c": 0.18487,
    "h": 139.4
  },
  "luminance": 0.26679
}

Semantic roles & 50–950 ramp

primary
#40A11F
secondary
#A858C4
accent
#3DEBBF
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0B1206
muted
#7C817A

Preview Lab

Preview with #40A11F

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

Preview Lab → · Contrast checker → · Palette generator →

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