#40A71F#40A71F

#40A71F is a light, vivid green. Relative luminance 0.288; OKLCH L 64.3% C 0.192 H 139.7°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#40A71F
RGBrgb(64, 167, 31)
HSLhsl(105, 69%, 39%)
HSVhsv(105, 81%, 65%)
CMYKcmyk(61.7%, 0%, 81.4%, 34.5%)
CIE-LABlab(60.63, -53.18, 55.98)
CIE-LCHlch(60.63, 77.21, 133.53°)
OKLaboklab(64.31% -0.1462 0.124)
OKLCHoklch(64.31% 0.192 139.7)
XYZxyz(16.1797, 28.8248, 6.0072)
Luminance0.2883 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A71F #861FA7
analogous
#84A71F #40A71F #1FA742
triadic
#40A71F #1F40A7 #A71F40
tetradic
#40A71F #1F84A7 #861FA7 #A7421F
square
#40A71F #1F84A7 #861FA7 #A7421F
split-complementary
#40A71F #421FA7 #A71F84
monochromatic
#18400C #2C7315 #40A71F #55D82B #7FE15F

Accessibility & contrast

On white

3.10
#40A71F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#40A71F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A71F
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A71F#FFFFFF#000000##000000
##40A71F1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9700
Deuteranopia (green-blind)
#9F8F30
Tritanopia (blue-blind)
#32A18E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #40a71f;
/* rgb */ color: rgb(64, 167, 31);
/* oklch */ color: oklch(64.3% 0.192 139.7);
Tailwind
colors: {
  custom: {
    50: '#82c267',
    500: '#40a71f',
    950: '#000000',
  },
}
SCSS
$custom: #40a71f;
$custom-light: #82c267;
$custom-dark: #000000;
JSON
{
  "hex": "#40a71f",
  "rgb": {
    "r": 64,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 105.441,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64308,
    "c": 0.19173,
    "h": 139.7
  },
  "luminance": 0.28826
}

Semantic roles & 50–950 ramp

primary
#40A71F
secondary
#AC5CC6
accent
#3CECC1
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #40A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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