#40A627#40A627

#40A627 is a light, vivid green. Relative luminance 0.285; OKLCH L 64.1% C 0.187 H 140.3°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#40A627
RGBrgb(64, 166, 39)
HSLhsl(108, 62%, 40%)
HSVhsv(108, 77%, 65%)
CMYKcmyk(61.4%, 0%, 76.5%, 34.9%)
CIE-LABlab(60.34, -52.33, 53.17)
CIE-LCHlch(60.34, 74.60, 134.54°)
OKLaboklab(64.09% -0.1435 0.1193)
OKLCHoklch(64.09% 0.187 140.3)
XYZxyz(16.1160, 28.5074, 6.5723)
Luminance0.2851 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A627 #8D27A6
analogous
#7FA627 #40A627 #27A64D
triadic
#40A627 #2740A6 #A62740
tetradic
#40A627 #277FA6 #8D27A6 #A64D27
square
#40A627 #277FA6 #8D27A6 #A64D27
split-complementary
#40A627 #4D27A6 #A6277F
monochromatic
#1A4310 #2D741B #40A627 #57D13A #81DC6B

Accessibility & contrast

On white

3.13
#40A627 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#40A627 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A627
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A627#FFFFFF#000000##000000
##40A6271.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9709
Deuteranopia (green-blind)
#9E8E35
Tritanopia (blue-blind)
#32A08E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #40a627;
/* rgb */ color: rgb(64, 166, 39);
/* oklch */ color: oklch(64.1% 0.187 140.3);
Tailwind
colors: {
  custom: {
    50: '#81c16b',
    500: '#40a627',
    950: '#000000',
  },
}
SCSS
$custom: #40a627;
$custom-light: #81c16b;
$custom-dark: #000000;
JSON
{
  "hex": "#40a627",
  "rgb": {
    "r": 64,
    "g": 166,
    "b": 39
  },
  "hsl": {
    "h": 108.189,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64088,
    "c": 0.18662,
    "h": 140.3
  },
  "luminance": 0.28509
}

Semantic roles & 50–950 ramp

primary
#40A627
secondary
#B066C3
accent
#43E5C5
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #40A627

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

Preview Lab → · Contrast checker → · Palette generator →

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