#40A731#40A731

#40A731 is a light, vivid green. Relative luminance 0.289; OKLCH L 64.4% C 0.182 H 141.3°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#40A731
RGBrgb(64, 167, 49)
HSLhsl(112, 55%, 42%)
HSVhsv(112, 71%, 65%)
CMYKcmyk(61.7%, 0%, 70.7%, 34.5%)
CIE-LABlab(60.74, -51.91, 49.87)
CIE-LCHlch(60.74, 71.98, 136.15°)
OKLaboklab(64.43% -0.1418 0.1137)
OKLCHoklch(64.43% 0.182 141.3)
XYZxyz(16.4866, 28.9476, 7.6238)
Luminance0.2895 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A731 #9831A7
analogous
#7BA731 #40A731 #31A75D
triadic
#40A731 #3140A7 #A73140
tetradic
#40A731 #317BA7 #9831A7 #A75D31
square
#40A731 #317BA7 #9831A7 #A75D31
split-complementary
#40A731 #5D31A7 #A7317B
monochromatic
#1C4815 #2E7823 #40A731 #5BCA4B #86D87A

Accessibility & contrast

On white

3.09
#40A731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#40A731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A731
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A731#FFFFFF#000000##000000
##40A7311.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB981F
Deuteranopia (green-blind)
#9F8F3C
Tritanopia (blue-blind)
#30A28F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #40a731;
/* rgb */ color: rgb(64, 167, 49);
/* oklch */ color: oklch(64.4% 0.182 141.3);
Tailwind
colors: {
  custom: {
    50: '#81c270',
    500: '#40a731',
    950: '#000000',
  },
}
SCSS
$custom: #40a731;
$custom-light: #81c270;
$custom-dark: #000000;
JSON
{
  "hex": "#40a731",
  "rgb": {
    "r": 64,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 112.373,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.64432,
    "c": 0.18179,
    "h": 141.3
  },
  "luminance": 0.28949
}

Semantic roles & 50–950 ramp

primary
#40A731
secondary
#B773C1
accent
#4ADECB
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #40A731

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

Preview Lab → · Contrast checker → · Palette generator →

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