#40A518#40A518

#40A518 is a light, vivid green. Relative luminance 0.281; OKLCH L 63.7% C 0.192 H 139.2°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#40A518
RGBrgb(64, 165, 24)
HSLhsl(103, 75%, 37%)
HSVhsv(103, 85%, 65%)
CMYKcmyk(61.2%, 0%, 85.5%, 35.3%)
CIE-LABlab(59.95, -52.82, 57.23)
CIE-LCHlch(59.95, 77.88, 132.71°)
OKLaboklab(63.74% -0.1456 0.1257)
OKLCHoklch(63.74% 0.192 139.2)
XYZxyz(15.7337, 28.0648, 5.4519)
Luminance0.2807 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A518 #7D18A5
analogous
#86A518 #40A518 #18A537
triadic
#40A518 #1840A5 #A51840
tetradic
#40A518 #1886A5 #7D18A5 #A53718
square
#40A518 #1886A5 #7D18A5 #A53718
split-complementary
#40A518 #3718A5 #A51886
monochromatic
#173A08 #2B7010 #40A518 #55DA20 #7CE652

Accessibility & contrast

On white

3.18
#40A518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#40A518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A518
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A518#FFFFFF#000000##000000
##40A5181.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9500
Deuteranopia (green-blind)
#9E8D2B
Tritanopia (blue-blind)
#349F8C
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #40a518;
/* rgb */ color: rgb(64, 165, 24);
/* oklch */ color: oklch(63.7% 0.192 139.2);
Tailwind
colors: {
  custom: {
    50: '#82c164',
    500: '#40a518',
    950: '#000000',
  },
}
SCSS
$custom: #40a518;
$custom-light: #82c164;
$custom-dark: #000000;
JSON
{
  "hex": "#40a518",
  "rgb": {
    "r": 64,
    "g": 165,
    "b": 24
  },
  "hsl": {
    "h": 102.979,
    "s": 74.603,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63736,
    "c": 0.19231,
    "h": 139.2
  },
  "luminance": 0.28066
}

Semantic roles & 50–950 ramp

primary
#40A518
secondary
#A651C8
accent
#37F1BC
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #40A518

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

Preview Lab → · Contrast checker → · Palette generator →

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