#40A71C#40A71C

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

Color values

HEX#40A71C
RGBrgb(64, 167, 28)
HSLhsl(104, 71%, 38%)
HSVhsv(104, 83%, 65%)
CMYKcmyk(61.7%, 0%, 83.2%, 34.5%)
CIE-LABlab(60.61, -53.34, 56.80)
CIE-LCHlch(60.61, 77.92, 133.20°)
OKLaboklab(64.29% -0.1468 0.1253)
OKLCHoklch(64.29% 0.193 139.5)
XYZxyz(16.1420, 28.8098, 5.8086)
Luminance0.2881 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A71C #831CA7
analogous
#85A71C #40A71C #1CA73D
triadic
#40A71C #1C40A7 #A71C40
tetradic
#40A71C #1C85A7 #831CA7 #A73D1C
square
#40A71C #1C85A7 #831CA7 #A73D1C
split-complementary
#40A71C #3D1CA7 #A71C85
monochromatic
#183E0A #2C7313 #40A71C #54DB26 #7EE35A

Accessibility & contrast

On white

3.11
#40A71C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#40A71C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A71C
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A71C#FFFFFF#000000##000000
##40A71C1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40a71c;
/* rgb */ color: rgb(64, 167, 28);
/* oklch */ color: oklch(64.3% 0.193 139.5);
Tailwind
colors: {
  custom: {
    50: '#82c266',
    500: '#40a71c',
    950: '#000000',
  },
}
SCSS
$custom: #40a71c;
$custom-light: #82c266;
$custom-dark: #000000;
JSON
{
  "hex": "#40a71c",
  "rgb": {
    "r": 64,
    "g": 167,
    "b": 28
  },
  "hsl": {
    "h": 104.46,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.64292,
    "c": 0.19301,
    "h": 139.5
  },
  "luminance": 0.28811
}

Semantic roles & 50–950 ramp

primary
#40A71C
secondary
#AA58C7
accent
#3AEEBF
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #40A71C

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

Preview Lab → · Contrast checker → · Palette generator →

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