#40AF38#40AF38

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

Color values

HEX#40AF38
RGBrgb(64, 175, 56)
HSLhsl(116, 52%, 45%)
HSVhsv(116, 68%, 69%)
CMYKcmyk(63.4%, 0%, 68%, 31.4%)
CIE-LABlab(63.37, -54.15, 49.83)
CIE-LCHlch(63.37, 73.59, 137.38°)
OKLaboklab(66.63% -0.1475 0.1145)
OKLCHoklch(66.63% 0.187 142.2)
XYZxyz(18.1572, 32.0337, 8.9669)
Luminance0.3204 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF38 #A738AF
analogous
#7CAF38 #40AF38 #38AF6B
triadic
#40AF38 #3840AF #AF3840
tetradic
#40AF38 #387CAF #A738AF #AF6B38
square
#40AF38 #387CAF #A738AF #AF6B38
split-complementary
#40AF38 #6B38AF #AF387C
monochromatic
#1E521A #2F8129 #40AF38 #62CA5A #8ED988

Accessibility & contrast

On white

2.84
#40AF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##40AF38#FFFFFF#000000##000000
##40AF381.002.847.417.41
#FFFFFF2.841.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40af38;
/* rgb */ color: rgb(64, 175, 56);
/* oklch */ color: oklch(66.6% 0.187 142.2);
Tailwind
colors: {
  custom: {
    50: '#82c875',
    500: '#40af38',
    950: '#000000',
  },
}
SCSS
$custom: #40af38;
$custom-light: #82c875;
$custom-dark: #000000;
JSON
{
  "hex": "#40af38",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 115.966,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.66629,
    "c": 0.18673,
    "h": 142.2
  },
  "luminance": 0.32035
}

Semantic roles & 50–950 ramp

primary
#40AF38
secondary
#BF80C3
accent
#4DDBD1
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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