#40A81C#40A81C

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

Color values

HEX#40A81C
RGBrgb(64, 168, 28)
HSLhsl(105, 71%, 38%)
HSVhsv(105, 83%, 66%)
CMYKcmyk(61.9%, 0%, 83.3%, 34.1%)
CIE-LABlab(60.94, -53.69, 57.10)
CIE-LCHlch(60.94, 78.38, 133.24°)
OKLaboklab(64.56% -0.1477 0.1259)
OKLCHoklch(64.56% 0.194 139.6)
XYZxyz(16.3259, 29.1776, 5.8699)
Luminance0.2918 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A81C #841CA8
analogous
#86A81C #40A81C #1CA83E
triadic
#40A81C #1C40A8 #A81C40
tetradic
#40A81C #1C86A8 #841CA8 #A83E1C
square
#40A81C #1C86A8 #841CA8 #A83E1C
split-complementary
#40A81C #3E1CA8 #A81C86
monochromatic
#183F0B #2C7413 #40A81C #55DB26 #7EE45B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A81C#FFFFFF#000000##000000
##40A81C1.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)
#A0902E
Tritanopia (blue-blind)
#32A28F
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #40a81c;
/* rgb */ color: rgb(64, 168, 28);
/* oklch */ color: oklch(64.6% 0.194 139.6);
Tailwind
colors: {
  custom: {
    50: '#82c366',
    500: '#40a81c',
    950: '#000000',
  },
}
SCSS
$custom: #40a81c;
$custom-light: #82c366;
$custom-dark: #000000;
JSON
{
  "hex": "#40a81c",
  "rgb": {
    "r": 64,
    "g": 168,
    "b": 28
  },
  "hsl": {
    "h": 104.571,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64561,
    "c": 0.19413,
    "h": 139.6
  },
  "luminance": 0.29179
}

Semantic roles & 50–950 ramp

primary
#40A81C
secondary
#AB58C7
accent
#3AEEC0
background
#F8FCF6
surface
#F0F8EB
border
#CBD1C6
text
#0C1306
muted
#7D827A

Preview Lab

Preview with #40A81C

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

Preview Lab → · Contrast checker → · Palette generator →

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