#40AF31#40AF31

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

Color values

HEX#40AF31
RGBrgb(64, 175, 49)
HSLhsl(113, 56%, 44%)
HSVhsv(113, 72%, 69%)
CMYKcmyk(63.4%, 0%, 72%, 31.4%)
CIE-LABlab(63.32, -54.77, 52.55)
CIE-LCHlch(63.32, 75.90, 136.19°)
OKLaboklab(66.57% -0.1495 0.1193)
OKLCHoklch(66.57% 0.191 141.4)
XYZxyz(17.9978, 31.9699, 8.1275)
Luminance0.3197 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF31 #A031AF
analogous
#7FAF31 #40AF31 #31AF61
triadic
#40AF31 #3140AF #AF3140
tetradic
#40AF31 #317FAF #A031AF #AF6131
square
#40AF31 #317FAF #A031AF #AF6131
split-complementary
#40AF31 #6131AF #AF317F
monochromatic
#1D4F16 #2F7F24 #40AF31 #5ECE4F #8ADB7F

Accessibility & contrast

On white

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

On black

7.39
#40AF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF31
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF31#FFFFFF#000000##000000
##40AF311.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1C
Deuteranopia (green-blind)
#A6963E
Tritanopia (blue-blind)
#2DAA96
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af31;
/* rgb */ color: rgb(64, 175, 49);
/* oklch */ color: oklch(66.6% 0.191 141.4);
Tailwind
colors: {
  custom: {
    50: '#83c871',
    500: '#40af31',
    950: '#000000',
  },
}
SCSS
$custom: #40af31;
$custom-light: #83c871;
$custom-dark: #000000;
JSON
{
  "hex": "#40af31",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 112.857,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66568,
    "c": 0.19132,
    "h": 141.4
  },
  "luminance": 0.31972
}

Semantic roles & 50–950 ramp

primary
#40AF31
secondary
#BB78C4
accent
#48E0CE
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40AF31

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

Preview Lab → · Contrast checker → · Palette generator →

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