#40A81F#40A81F

#40A81F is a light, vivid green. Relative luminance 0.292; OKLCH L 64.6% C 0.193 H 139.7°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#40A81F
RGBrgb(64, 168, 31)
HSLhsl(106, 69%, 39%)
HSVhsv(106, 82%, 66%)
CMYKcmyk(61.9%, 0%, 81.5%, 34.1%)
CIE-LABlab(60.95, -53.53, 56.28)
CIE-LCHlch(60.95, 77.67, 133.57°)
OKLaboklab(64.58% -0.1472 0.1246)
OKLCHoklch(64.58% 0.193 139.7)
XYZxyz(16.3636, 29.1926, 6.0685)
Luminance0.2919 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A81F #871FA8
analogous
#85A81F #40A81F #1FA842
triadic
#40A81F #1F40A8 #A81F40
tetradic
#40A81F #1F85A8 #871FA8 #A8421F
square
#40A81F #1F85A8 #871FA8 #A8421F
split-complementary
#40A81F #421FA8 #A81F85
monochromatic
#19410C #2C7415 #40A81F #56D82C #7FE260

Accessibility & contrast

On white

3.07
#40A81F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#40A81F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A81F
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A81F#FFFFFF#000000##000000
##40A81F1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9800
Deuteranopia (green-blind)
#A09030
Tritanopia (blue-blind)
#32A28F
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #40a81f;
/* rgb */ color: rgb(64, 168, 31);
/* oklch */ color: oklch(64.6% 0.193 139.7);
Tailwind
colors: {
  custom: {
    50: '#82c367',
    500: '#40a81f',
    950: '#000000',
  },
}
SCSS
$custom: #40a81f;
$custom-light: #82c367;
$custom-dark: #000000;
JSON
{
  "hex": "#40a81f",
  "rgb": {
    "r": 64,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 105.547,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.64576,
    "c": 0.19286,
    "h": 139.7
  },
  "luminance": 0.29194
}

Semantic roles & 50–950 ramp

primary
#40A81F
secondary
#AD5DC6
accent
#3CECC1
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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