#40A227#40A227

#40A227 is a light, vivid green. Relative luminance 0.271; OKLCH L 63.0% C 0.182 H 140.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#40A227
RGBrgb(64, 162, 39)
HSLhsl(108, 61%, 39%)
HSVhsv(108, 76%, 64%)
CMYKcmyk(60.5%, 0%, 75.9%, 36.5%)
CIE-LABlab(59.04, -50.88, 51.89)
CIE-LCHlch(59.04, 72.68, 134.44°)
OKLaboklab(63.01% -0.1396 0.1166)
OKLCHoklch(63.01% 0.182 140.1)
XYZxyz(15.4002, 27.0757, 6.3336)
Luminance0.2708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A227 #8927A2
analogous
#7EA227 #40A227 #27A24C
triadic
#40A227 #2740A2 #A22740
tetradic
#40A227 #277EA2 #8927A2 #A24C27
square
#40A227 #277EA2 #8927A2 #A24C27
split-complementary
#40A227 #4C27A2 #A2277E
monochromatic
#193F0F #2D711B #40A227 #56CF37 #80DB69

Accessibility & contrast

On white

3.27
#40A227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#40A227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A227
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A227#FFFFFF#000000##000000
##40A2271.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7930C
Deuteranopia (green-blind)
#9A8B34
Tritanopia (blue-blind)
#339D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a227;
/* rgb */ color: rgb(64, 162, 39);
/* oklch */ color: oklch(63.0% 0.182 140.1);
Tailwind
colors: {
  custom: {
    50: '#81be6a',
    500: '#40a227',
    950: '#000000',
  },
}
SCSS
$custom: #40a227;
$custom-light: #81be6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40a227",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 107.805,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63013,
    "c": 0.18192,
    "h": 140.1
  },
  "luminance": 0.27077
}

Semantic roles & 50–950 ramp

primary
#40A227
secondary
#AE64C1
accent
#43E4C4
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A227

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

Preview Lab → · Contrast checker → · Palette generator →

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