#40A331#40A331

#40A331 is a light, vivid green. Relative luminance 0.275; OKLCH L 63.4% C 0.177 H 141.2°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#40A331
RGBrgb(64, 163, 49)
HSLhsl(112, 54%, 42%)
HSVhsv(112, 70%, 64%)
CMYKcmyk(60.7%, 0%, 69.9%, 36.1%)
CIE-LABlab(59.44, -50.45, 48.51)
CIE-LCHlch(59.44, 69.99, 136.12°)
OKLaboklab(63.36% -0.1378 0.1109)
OKLCHoklch(63.36% 0.177 141.2)
XYZxyz(15.7651, 27.5047, 7.3833)
Luminance0.2751 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A331 #9431A3
analogous
#79A331 #40A331 #31A35B
triadic
#40A331 #3140A3 #A33140
tetradic
#40A331 #3179A3 #9431A3 #A35B31
square
#40A331 #3179A3 #9431A3 #A35B31
split-complementary
#40A331 #5B31A3 #A33179
monochromatic
#1B4515 #2E7423 #40A331 #5AC849 #84D678

Accessibility & contrast

On white

3.23
#40A331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#40A331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A331
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A331#FFFFFF#000000##000000
##40A3311.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79420
Deuteranopia (green-blind)
#9B8C3C
Tritanopia (blue-blind)
#319E8C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #40a331;
/* rgb */ color: rgb(64, 163, 49);
/* oklch */ color: oklch(63.4% 0.177 141.2);
Tailwind
colors: {
  custom: {
    50: '#80bf6f',
    500: '#40a331',
    950: '#000000',
  },
}
SCSS
$custom: #40a331;
$custom-light: #80bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#40a331",
  "rgb": {
    "r": 64,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 112.105,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.63361,
    "c": 0.17692,
    "h": 141.2
  },
  "luminance": 0.27506
}

Semantic roles & 50–950 ramp

primary
#40A331
secondary
#B471BF
accent
#4BDDCA
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A331

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

Preview Lab → · Contrast checker → · Palette generator →

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