#40B877#40B877

#40B877 is a light, vivid green. Relative luminance 0.367; OKLCH L 69.9% C 0.144 H 155.7°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#40B877
RGBrgb(64, 184, 119)
HSLhsl(148, 48%, 49%)
HSVhsv(148, 65%, 72%)
CMYKcmyk(65.2%, 0%, 35.3%, 27.8%)
CIE-LABlab(67.05, -48.30, 23.49)
CIE-LCHlch(67.05, 53.71, 154.06°)
OKLaboklab(69.93% -0.1309 0.059)
OKLCHoklch(69.93% 0.144 155.7)
XYZxyz(22.5826, 36.7005, 23.3430)
Luminance0.3670 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B877 #B84081
analogous
#45B840 #40B877 #40B8B3
triadic
#40B877 #7740B8 #B87740
tetradic
#40B877 #4045B8 #B84081 #B8B340
square
#40B877 #4045B8 #B84081 #B8B340
split-complementary
#40B877 #B340B8 #B84045
monochromatic
#205D3C #308B5A #40B877 #6ACB97 #97DBB6

Accessibility & contrast

On white

2.52
#40B877 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#40B877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B877
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B877#FFFFFF#000000##000000
##40B8771.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7AA73
Deuteranopia (green-blind)
#A89F7B
Tritanopia (blue-blind)
#00B6A7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #40b877;
/* rgb */ color: rgb(64, 184, 119);
/* oklch */ color: oklch(69.9% 0.144 155.7);
Tailwind
colors: {
  custom: {
    50: '#82ce9e',
    500: '#40b877',
    950: '#000000',
  },
}
SCSS
$custom: #40b877;
$custom-light: #82ce9e;
$custom-dark: #000000;
JSON
{
  "hex": "#40b877",
  "rgb": {
    "r": 64,
    "g": 184,
    "b": 119
  },
  "hsl": {
    "h": 147.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.69931,
    "c": 0.14363,
    "h": 155.7
  },
  "luminance": 0.36703
}

Semantic roles & 50–950 ramp

primary
#40B877
secondary
#C78DAC
accent
#509AD8
background
#F8FCF9
surface
#F0F9F2
border
#CBD2CC
text
#0C140E
muted
#7D827E

Preview Lab

Preview with #40B877

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

Preview Lab → · Contrast checker → · Palette generator →

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