#40B172#40B172

#40B172 is a light, vivid green. Relative luminance 0.337; OKLCH L 68.0% C 0.139 H 155.3°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#40B172
RGBrgb(64, 177, 114)
HSLhsl(147, 47%, 47%)
HSVhsv(147, 64%, 69%)
CMYKcmyk(63.8%, 0%, 35.6%, 30.6%)
CIE-LABlab(64.76, -46.45, 23.09)
CIE-LCHlch(64.76, 51.87, 153.57°)
OKLaboklab(68.02% -0.1259 0.058)
OKLCHoklch(68.02% 0.139 155.3)
XYZxyz(20.8719, 33.7470, 21.3302)
Luminance0.3375 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B172 #B1407F
analogous
#46B140 #40B172 #40B1AB
triadic
#40B172 #7240B1 #B17240
tetradic
#40B172 #4046B1 #B1407F #B1AB40
square
#40B172 #4046B1 #B1407F #B1AB40
split-complementary
#40B172 #AB40B1 #B14046
monochromatic
#1F5738 #308455 #40B172 #66C891 #93D8B2

Accessibility & contrast

On white

2.71
#40B172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#40B172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B172
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B172#FFFFFF#000000##000000
##40B1721.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A36E
Deuteranopia (green-blind)
#A29976
Tritanopia (blue-blind)
#02AFA1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b172;
/* rgb */ color: rgb(64, 177, 114);
/* oklch */ color: oklch(68.0% 0.139 155.3);
Tailwind
colors: {
  custom: {
    50: '#81c99b',
    500: '#40b172',
    950: '#000000',
  },
}
SCSS
$custom: #40b172;
$custom-light: #81c99b;
$custom-dark: #000000;
JSON
{
  "hex": "#40b172",
  "rgb": {
    "r": 64,
    "g": 177,
    "b": 114
  },
  "hsl": {
    "h": 146.549,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.6802,
    "c": 0.13866,
    "h": 155.3
  },
  "luminance": 0.33749
}

Semantic roles & 50–950 ramp

primary
#40B172
secondary
#C389AA
accent
#519CD7
background
#F8FCF9
surface
#EFF8F2
border
#CAD1CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #40B172

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

Preview Lab → · Contrast checker → · Palette generator →

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