#40AF3A#40AF3A

#40AF3A is a light, vivid green. Relative luminance 0.321; OKLCH L 66.6% C 0.185 H 142.4°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#40AF3A
RGBrgb(64, 175, 58)
HSLhsl(117, 50%, 46%)
HSVhsv(117, 67%, 69%)
CMYKcmyk(63.4%, 0%, 66.9%, 31.4%)
CIE-LABlab(63.39, -53.96, 49.02)
CIE-LCHlch(63.39, 72.90, 137.75°)
OKLaboklab(66.65% -0.1469 0.113)
OKLCHoklch(66.65% 0.185 142.4)
XYZxyz(18.2070, 32.0536, 9.2296)
Luminance0.3206 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF3A #A93AAF
analogous
#7AAF3A #40AF3A #3AAF6E
triadic
#40AF3A #3A40AF #AF3A40
tetradic
#40AF3A #3A7AAF #A93AAF #AF6E3A
square
#40AF3A #3A7AAF #A93AAF #AF6E3A
split-complementary
#40AF3A #6E3AAF #AF3A7A
monochromatic
#1E531C #2F812B #40AF3A #62C95D #8FD98B

Accessibility & contrast

On white

2.83
#40AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#40AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF3A
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF3A#FFFFFF#000000##000000
##40AF3A1.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F2B
Deuteranopia (green-blind)
#A59645
Tritanopia (blue-blind)
#2BAA97
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af3a;
/* rgb */ color: rgb(64, 175, 58);
/* oklch */ color: oklch(66.6% 0.185 142.4);
Tailwind
colors: {
  custom: {
    50: '#82c876',
    500: '#40af3a',
    950: '#000000',
  },
}
SCSS
$custom: #40af3a;
$custom-light: #82c876;
$custom-dark: #000000;
JSON
{
  "hex": "#40af3a",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 116.923,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.66647,
    "c": 0.18533,
    "h": 142.4
  },
  "luminance": 0.32055
}

Semantic roles & 50–950 ramp

primary
#40AF3A
secondary
#C082C3
accent
#4EDAD3
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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