#40AC31#40AC31

#40AC31 is a light, vivid green. Relative luminance 0.308; OKLCH L 65.8% C 0.188 H 141.4°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#40AC31
RGBrgb(64, 172, 49)
HSLhsl(113, 56%, 43%)
HSVhsv(113, 72%, 67%)
CMYKcmyk(62.8%, 0%, 71.5%, 32.5%)
CIE-LABlab(62.35, -53.70, 51.55)
CIE-LCHlch(62.35, 74.44, 136.17°)
OKLaboklab(65.77% -0.1467 0.1173)
OKLCHoklch(65.77% 0.188 141.4)
XYZxyz(17.4204, 30.8151, 7.9350)
Luminance0.3082 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AC31 #9D31AC
analogous
#7DAC31 #40AC31 #31AC5F
triadic
#40AC31 #3140AC #AC3140
tetradic
#40AC31 #317DAC #9D31AC #AC5F31
square
#40AC31 #317DAC #9D31AC #AC5F31
split-complementary
#40AC31 #5F31AC #AC317D
monochromatic
#1D4D16 #2E7C23 #40AC31 #5DCC4E #89DA7D

Accessibility & contrast

On white

2.93
#40AC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#40AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AC31
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AC31#FFFFFF#000000##000000
##40AC311.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1D
Deuteranopia (green-blind)
#A3933D
Tritanopia (blue-blind)
#2EA794
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #40ac31;
/* rgb */ color: rgb(64, 172, 49);
/* oklch */ color: oklch(65.8% 0.188 141.4);
Tailwind
colors: {
  custom: {
    50: '#82c670',
    500: '#40ac31',
    950: '#000000',
  },
}
SCSS
$custom: #40ac31;
$custom-light: #82c670;
$custom-dark: #000000;
JSON
{
  "hex": "#40ac31",
  "rgb": {
    "r": 64,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 112.683,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.65768,
    "c": 0.18778,
    "h": 141.4
  },
  "luminance": 0.30817
}

Semantic roles & 50–950 ramp

primary
#40AC31
secondary
#B976C3
accent
#49DFCD
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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