#40AF40#40AF40

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

Color values

HEX#40AF40
RGBrgb(64, 175, 64)
HSLhsl(120, 46%, 47%)
HSVhsv(120, 63%, 69%)
CMYKcmyk(63.4%, 0%, 63.4%, 31.4%)
CIE-LABlab(63.44, -53.34, 46.49)
CIE-LCHlch(63.44, 70.75, 138.92°)
OKLaboklab(66.71% -0.1449 0.1083)
OKLCHoklch(66.71% 0.181 143.2)
XYZxyz(18.3687, 32.1183, 10.0809)
Luminance0.3212 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF40 #AF40AF
analogous
#78AF40 #40AF40 #40AF78
triadic
#40AF40 #4040AF #AF4040
tetradic
#40AF40 #4078AF #AF40AF #AF7840
square
#40AF40 #4078AF #AF40AF #AF7840
split-complementary
#40AF40 #7840AF #AF4078
monochromatic
#1F551F #308230 #40AF40 #65C765 #92D792

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF40#FFFFFF#000000##000000
##40AF401.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)
#B39F33
Deuteranopia (green-blind)
#A59649
Tritanopia (blue-blind)
#29AA98
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af40;
/* rgb */ color: rgb(64, 175, 64);
/* oklch */ color: oklch(66.7% 0.181 143.2);
Tailwind
colors: {
  custom: {
    50: '#82c879',
    500: '#40af40',
    950: '#000000',
  },
}
SCSS
$custom: #40af40;
$custom-light: #82c879;
$custom-dark: #000000;
JSON
{
  "hex": "#40af40",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.66709,
    "c": 0.18089,
    "h": 143.2
  },
  "luminance": 0.3212
}

Semantic roles & 50–950 ramp

primary
#40AF40
secondary
#C388C3
accent
#52D6D6
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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