#40A040#40A040

#40A040 is a light, vivid green. Relative luminance 0.266; OKLCH L 62.7% C 0.162 H 143.3°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#40A040
RGBrgb(64, 160, 64)
HSLhsl(120, 43%, 44%)
HSVhsv(120, 60%, 63%)
CMYKcmyk(60%, 0%, 60%, 37.3%)
CIE-LABlab(58.60, -47.75, 40.99)
CIE-LCHlch(58.60, 62.93, 139.36°)
OKLaboklab(62.72% -0.1297 0.0965)
OKLCHoklch(62.72% 0.162 143.3)
XYZxyz(15.6097, 26.6003, 9.1613)
Luminance0.2660 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A040 #A040A0
analogous
#70A040 #40A040 #40A070
triadic
#40A040 #4040A0 #A04040
tetradic
#40A040 #4070A0 #A040A0 #A07040
square
#40A040 #4070A0 #A040A0 #A07040
split-complementary
#40A040 #7040A0 #A04070
monochromatic
#1D491D #2F742F #40A040 #5EBF5E #8AD08A

Accessibility & contrast

On white

3.32
#40A040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#40A040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A040
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A040#FFFFFF#000000##000000
##40A0401.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39236
Deuteranopia (green-blind)
#978A48
Tritanopia (blue-blind)
#2F9C8B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #40a040;
/* rgb */ color: rgb(64, 160, 64);
/* oklch */ color: oklch(62.7% 0.162 143.3);
Tailwind
colors: {
  custom: {
    50: '#7fbd78',
    500: '#40a040',
    950: '#000000',
  },
}
SCSS
$custom: #40a040;
$custom-light: #7fbd78;
$custom-dark: #000000;
JSON
{
  "hex": "#40a040",
  "rgb": {
    "r": 64,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.62715,
    "c": 0.16171,
    "h": 143.3
  },
  "luminance": 0.26602
}

Semantic roles & 50–950 ramp

primary
#40A040
secondary
#BB81BB
accent
#55D3D3
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #40A040

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

Preview Lab → · Contrast checker → · Palette generator →

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