#40AF3C#40AF3C

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

Color values

HEX#40AF3C
RGBrgb(64, 175, 60)
HSLhsl(118, 49%, 46%)
HSVhsv(118, 66%, 69%)
CMYKcmyk(63.4%, 0%, 65.7%, 31.4%)
CIE-LABlab(63.40, -53.76, 48.19)
CIE-LCHlch(63.40, 72.20, 138.13°)
OKLaboklab(66.67% -0.1462 0.1115)
OKLCHoklch(66.67% 0.184 142.7)
XYZxyz(18.2589, 32.0744, 9.5028)
Luminance0.3208 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF3C #AB3CAF
analogous
#79AF3C #40AF3C #3CAF71
triadic
#40AF3C #3C40AF #AF3C40
tetradic
#40AF3C #3C79AF #AB3CAF #AF713C
square
#40AF3C #3C79AF #AB3CAF #AF713C
split-complementary
#40AF3C #713CAF #AF3C79
monochromatic
#1F541D #2F812C #40AF3C #63C860 #90D88D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF3C#FFFFFF#000000##000000
##40AF3C1.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)
#B39F2D
Deuteranopia (green-blind)
#A59646
Tritanopia (blue-blind)
#2AAA97
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af3c;
/* rgb */ color: rgb(64, 175, 60);
/* oklch */ color: oklch(66.7% 0.184 142.7);
Tailwind
colors: {
  custom: {
    50: '#82c877',
    500: '#40af3c',
    950: '#000000',
  },
}
SCSS
$custom: #40af3c;
$custom-light: #82c877;
$custom-dark: #000000;
JSON
{
  "hex": "#40af3c",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 60
  },
  "hsl": {
    "h": 117.913,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.66667,
    "c": 0.18388,
    "h": 142.7
  },
  "luminance": 0.32076
}

Semantic roles & 50–950 ramp

primary
#40AF3C
secondary
#C184C3
accent
#4FD8D4
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40AF3C

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

Preview Lab → · Contrast checker → · Palette generator →

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