#40A22D#40A22D

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

Color values

HEX#40A22D
RGBrgb(64, 162, 45)
HSLhsl(110, 57%, 41%)
HSVhsv(110, 72%, 64%)
CMYKcmyk(60.5%, 0%, 72.2%, 36.5%)
CIE-LABlab(59.08, -50.42, 49.72)
CIE-LCHlch(59.08, 70.81, 135.40°)
OKLaboklab(63.06% -0.138 0.1129)
OKLCHoklch(63.06% 0.178 140.7)
XYZxyz(15.5076, 27.1187, 6.8993)
Luminance0.2712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A22D #8F2DA2
analogous
#7BA22D #40A22D #2DA254
triadic
#40A22D #2D40A2 #A22D40
tetradic
#40A22D #2D7BA2 #8F2DA2 #A2542D
square
#40A22D #2D7BA2 #8F2DA2 #A2542D
split-complementary
#40A22D #542DA2 #A22D7B
monochromatic
#1A4212 #2D7220 #40A22D #58CA42 #82D872

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A22D#FFFFFF#000000##000000
##40A22D1.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)
#A69319
Deuteranopia (green-blind)
#9A8B39
Tritanopia (blue-blind)
#329D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #40a22d;
/* rgb */ color: rgb(64, 162, 45);
/* oklch */ color: oklch(63.1% 0.178 140.7);
Tailwind
colors: {
  custom: {
    50: '#80be6d',
    500: '#40a22d',
    950: '#000000',
  },
}
SCSS
$custom: #40a22d;
$custom-light: #80be6d;
$custom-dark: #000000;
JSON
{
  "hex": "#40a22d",
  "rgb": {
    "r": 64,
    "g": 162,
    "b": 45
  },
  "hsl": {
    "h": 110.256,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.63058,
    "c": 0.17832,
    "h": 140.7
  },
  "luminance": 0.2712
}

Semantic roles & 50–950 ramp

primary
#40A22D
secondary
#B26CBF
accent
#48E0C7
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A22D

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

Preview Lab → · Contrast checker → · Palette generator →

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