#40AF3D#40AF3D

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

Color values

HEX#40AF3D
RGBrgb(64, 175, 61)
HSLhsl(118, 48%, 46%)
HSVhsv(118, 65%, 69%)
CMYKcmyk(63.4%, 0%, 65.1%, 31.4%)
CIE-LABlab(63.41, -53.66, 47.77)
CIE-LCHlch(63.41, 71.84, 138.32°)
OKLaboklab(66.68% -0.1459 0.1107)
OKLCHoklch(66.68% 0.183 142.8)
XYZxyz(18.2856, 32.0851, 9.6434)
Luminance0.3209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF3D #AC3DAF
analogous
#79AF3D #40AF3D #3DAF73
triadic
#40AF3D #3D40AF #AF3D40
tetradic
#40AF3D #3D79AF #AC3DAF #AF733D
square
#40AF3D #3D79AF #AC3DAF #AF733D
split-complementary
#40AF3D #733DAF #AF3D79
monochromatic
#1F541D #2F822D #40AF3D #64C861 #91D88F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF3D#FFFFFF#000000##000000
##40AF3D1.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)
#B39F2F
Deuteranopia (green-blind)
#A59647
Tritanopia (blue-blind)
#2AAA97
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40af3d;
/* rgb */ color: rgb(64, 175, 61);
/* oklch */ color: oklch(66.7% 0.183 142.8);
Tailwind
colors: {
  custom: {
    50: '#82c877',
    500: '#40af3d',
    950: '#000000',
  },
}
SCSS
$custom: #40af3d;
$custom-light: #82c877;
$custom-dark: #000000;
JSON
{
  "hex": "#40af3d",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 61
  },
  "hsl": {
    "h": 118.421,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.66677,
    "c": 0.18315,
    "h": 142.8
  },
  "luminance": 0.32087
}

Semantic roles & 50–950 ramp

primary
#40AF3D
secondary
#C185C3
accent
#50D8D4
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40AF3D

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

Preview Lab → · Contrast checker → · Palette generator →

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