#40AF3E#40AF3E

#40AF3E is a light, vivid green. Relative luminance 0.321; OKLCH L 66.7% C 0.182 H 142.9°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#40AF3E
RGBrgb(64, 175, 62)
HSLhsl(119, 48%, 46%)
HSVhsv(119, 65%, 69%)
CMYKcmyk(63.4%, 0%, 64.6%, 31.4%)
CIE-LABlab(63.42, -53.55, 47.35)
CIE-LCHlch(63.42, 71.48, 138.52°)
OKLaboklab(66.69% -0.1456 0.1099)
OKLCHoklch(66.69% 0.182 142.9)
XYZxyz(18.3128, 32.0959, 9.7866)
Luminance0.3210 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF3E #AD3EAF
analogous
#79AF3E #40AF3E #3EAF75
triadic
#40AF3E #3E40AF #AF3E40
tetradic
#40AF3E #3E79AF #AD3EAF #AF753E
square
#40AF3E #3E79AF #AD3EAF #AF753E
split-complementary
#40AF3E #753EAF #AF3E79
monochromatic
#1F551E #2F822E #40AF3E #64C863 #91D890

Accessibility & contrast

On white

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

On black

7.42
#40AF3E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF3E
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF3E#FFFFFF#000000##000000
##40AF3E1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F30
Deuteranopia (green-blind)
#A59648
Tritanopia (blue-blind)
#2AAA97
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af3e;
/* rgb */ color: rgb(64, 175, 62);
/* oklch */ color: oklch(66.7% 0.182 142.9);
Tailwind
colors: {
  custom: {
    50: '#82c878',
    500: '#40af3e',
    950: '#000000',
  },
}
SCSS
$custom: #40af3e;
$custom-light: #82c878;
$custom-dark: #000000;
JSON
{
  "hex": "#40af3e",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 62
  },
  "hsl": {
    "h": 118.938,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.66688,
    "c": 0.18241,
    "h": 142.9
  },
  "luminance": 0.32098
}

Semantic roles & 50–950 ramp

primary
#40AF3E
secondary
#C286C3
accent
#51D7D5
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40AF3E

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

Preview Lab → · Contrast checker → · Palette generator →

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