#40B221#40B221

#40B221 is a light, highly saturated green. Relative luminance 0.330; OKLCH L 67.3% C 0.203 H 140.2°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#40B221
RGBrgb(64, 178, 33)
HSLhsl(107, 69%, 41%)
HSVhsv(107, 81%, 70%)
CMYKcmyk(64%, 0%, 81.5%, 30.2%)
CIE-LABlab(64.19, -56.89, 58.72)
CIE-LCHlch(64.19, 81.76, 134.10°)
OKLaboklab(67.26% -0.1561 0.13)
OKLCHoklch(67.26% 0.203 140.2)
XYZxyz(18.3084, 33.0388, 6.8508)
Luminance0.3304 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B221 #9321B2
analogous
#89B221 #40B221 #21B24A
triadic
#40B221 #2140B2 #B22140
tetradic
#40B221 #2189B2 #9321B2 #B24A21
square
#40B221 #2189B2 #9321B2 #B24A21
split-complementary
#40B221 #4A21B2 #B22189
monochromatic
#1B4B0E #2D7E17 #40B221 #59DA36 #84E36A

Accessibility & contrast

On white

2.76
#40B221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#40B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B221
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B221#FFFFFF#000000##000000
##40B2211.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A100
Deuteranopia (green-blind)
#A99833
Tritanopia (blue-blind)
#2EAC98
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #40b221;
/* rgb */ color: rgb(64, 178, 33);
/* oklch */ color: oklch(67.3% 0.203 140.2);
Tailwind
colors: {
  custom: {
    50: '#84ca6a',
    500: '#40b221',
    950: '#000000',
  },
}
SCSS
$custom: #40b221;
$custom-light: #84ca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#40b221",
  "rgb": {
    "r": 64,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 107.172,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.67263,
    "c": 0.20316,
    "h": 140.2
  },
  "luminance": 0.33041
}

Semantic roles & 50–950 ramp

primary
#40B221
secondary
#B466C9
accent
#3CECC6
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40B221

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

Preview Lab → · Contrast checker → · Palette generator →

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