#40A51C#40A51C

#40A51C is a light, vivid green. Relative luminance 0.281; OKLCH L 63.8% C 0.191 H 139.4°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#40A51C
RGBrgb(64, 165, 28)
HSLhsl(104, 71%, 38%)
HSVhsv(104, 83%, 65%)
CMYKcmyk(61.2%, 0%, 83%, 35.3%)
CIE-LABlab(59.96, -52.63, 56.21)
CIE-LCHlch(59.96, 77.00, 133.12°)
OKLaboklab(63.76% -0.1449 0.1241)
OKLCHoklch(63.76% 0.191 139.4)
XYZxyz(15.7784, 28.0826, 5.6874)
Luminance0.2808 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A51C #811CA5
analogous
#84A51C #40A51C #1CA53D
triadic
#40A51C #1C40A5 #A51C40
tetradic
#40A51C #1C84A5 #811CA5 #A53D1C
square
#40A51C #1C84A5 #811CA5 #A53D1C
split-complementary
#40A51C #3D1CA5 #A51C84
monochromatic
#173C0A #2C7113 #40A51C #54D925 #7DE359

Accessibility & contrast

On white

3.17
#40A51C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#40A51C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A51C
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A51C#FFFFFF#000000##000000
##40A51C1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#9E8D2E
Tritanopia (blue-blind)
#339F8C
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #40a51c;
/* rgb */ color: rgb(64, 165, 28);
/* oklch */ color: oklch(63.8% 0.191 139.4);
Tailwind
colors: {
  custom: {
    50: '#82c166',
    500: '#40a51c',
    950: '#000000',
  },
}
SCSS
$custom: #40a51c;
$custom-light: #82c166;
$custom-dark: #000000;
JSON
{
  "hex": "#40a51c",
  "rgb": {
    "r": 64,
    "g": 165,
    "b": 28
  },
  "hsl": {
    "h": 104.234,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63755,
    "c": 0.19076,
    "h": 139.4
  },
  "luminance": 0.28084
}

Semantic roles & 50–950 ramp

primary
#40A51C
secondary
#A956C6
accent
#3AEEBF
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #40A51C

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

Preview Lab → · Contrast checker → · Palette generator →

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