#40B271#40B271

#40B271 is a light, vivid green. Relative luminance 0.341; OKLCH L 68.3% C 0.141 H 154.7°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#40B271
RGBrgb(64, 178, 113)
HSLhsl(146, 47%, 47%)
HSVhsv(146, 64%, 70%)
CMYKcmyk(64%, 0%, 36.5%, 30.2%)
CIE-LABlab(65.06, -47.05, 24.02)
CIE-LCHlch(65.06, 52.83, 152.95°)
OKLaboklab(68.26% -0.1275 0.0602)
OKLCHoklch(68.26% 0.141 154.7)
XYZxyz(21.0136, 34.1209, 21.0981)
Luminance0.3412 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B271 #B24081
analogous
#48B240 #40B271 #40B2AA
triadic
#40B271 #7140B2 #B27140
tetradic
#40B271 #4048B2 #B24081 #B2AA40
square
#40B271 #4048B2 #B24081 #B2AA40
split-complementary
#40B271 #AA40B2 #B24048
monochromatic
#205838 #308554 #40B271 #67C891 #94D8B1

Accessibility & contrast

On white

2.68
#40B271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#40B271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B271
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B271#FFFFFF#000000##000000
##40B2711.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A46D
Deuteranopia (green-blind)
#A39A75
Tritanopia (blue-blind)
#02B0A1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #40b271;
/* rgb */ color: rgb(64, 178, 113);
/* oklch */ color: oklch(68.3% 0.141 154.7);
Tailwind
colors: {
  custom: {
    50: '#81ca9a',
    500: '#40b271',
    950: '#000000',
  },
}
SCSS
$custom: #40b271;
$custom-light: #81ca9a;
$custom-dark: #000000;
JSON
{
  "hex": "#40b271",
  "rgb": {
    "r": 64,
    "g": 178,
    "b": 113
  },
  "hsl": {
    "h": 145.789,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.68258,
    "c": 0.14098,
    "h": 154.7
  },
  "luminance": 0.34123
}

Semantic roles & 50–950 ramp

primary
#40B271
secondary
#C48AAB
accent
#519DD7
background
#F8FCF9
surface
#F0F8F2
border
#CBD1CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #40B271

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

Preview Lab → · Contrast checker → · Palette generator →

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