#40A71B#40A71B

#40A71B 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#40A71B
RGBrgb(64, 167, 27)
HSLhsl(104, 72%, 38%)
HSVhsv(104, 84%, 65%)
CMYKcmyk(61.7%, 0%, 83.8%, 34.5%)
CIE-LABlab(60.61, -53.39, 57.06)
CIE-LCHlch(60.61, 78.14, 133.09°)
OKLaboklab(64.29% -0.147 0.1257)
OKLCHoklch(64.29% 0.193 139.5)
XYZxyz(16.1302, 28.8051, 5.7466)
Luminance0.2881 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A71B #821BA7
analogous
#86A71B #40A71B #1BA73C
triadic
#40A71B #1B40A7 #A71B40
tetradic
#40A71B #1B86A7 #821BA7 #A73C1B
square
#40A71B #1B86A7 #821BA7 #A73C1B
split-complementary
#40A71B #3C1BA7 #A71B86
monochromatic
#183E0A #2C7212 #40A71B #54DC24 #7DE458

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A71B#FFFFFF#000000##000000
##40A71B1.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)
#9F8F2D
Tritanopia (blue-blind)
#33A18E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #40a71b;
/* rgb */ color: rgb(64, 167, 27);
/* oklch */ color: oklch(64.3% 0.193 139.5);
Tailwind
colors: {
  custom: {
    50: '#82c266',
    500: '#40a71b',
    950: '#000000',
  },
}
SCSS
$custom: #40a71b;
$custom-light: #82c266;
$custom-dark: #000000;
JSON
{
  "hex": "#40a71b",
  "rgb": {
    "r": 64,
    "g": 167,
    "b": 27
  },
  "hsl": {
    "h": 104.143,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.64288,
    "c": 0.19341,
    "h": 139.5
  },
  "luminance": 0.28807
}

Semantic roles & 50–950 ramp

primary
#40A71B
secondary
#AA56C8
accent
#39EFBF
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #40A71B

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

Preview Lab → · Contrast checker → · Palette generator →

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