#40B879#40B879

#40B879 is a light, vivid green. Relative luminance 0.368; OKLCH L 70.0% C 0.142 H 156.5°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#40B879
RGBrgb(64, 184, 121)
HSLhsl(149, 48%, 49%)
HSVhsv(149, 65%, 72%)
CMYKcmyk(65.2%, 0%, 34.2%, 27.8%)
CIE-LABlab(67.09, -47.90, 22.47)
CIE-LCHlch(67.09, 52.91, 154.87°)
OKLaboklab(69.97% -0.13 0.0566)
OKLCHoklch(69.97% 0.142 156.5)
XYZxyz(22.7040, 36.7490, 23.9822)
Luminance0.3675 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B879 #B8407F
analogous
#43B840 #40B879 #40B8B5
triadic
#40B879 #7940B8 #B87940
tetradic
#40B879 #4043B8 #B8407F #B8B540
square
#40B879 #4043B8 #B8407F #B8B540
split-complementary
#40B879 #B540B8 #B84043
monochromatic
#205D3D #308B5B #40B879 #6ACB98 #97DBB8

Accessibility & contrast

On white

2.51
#40B879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#40B879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B879
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B879#FFFFFF#000000##000000
##40B8791.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7AA75
Deuteranopia (green-blind)
#A79F7D
Tritanopia (blue-blind)
#00B6A8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #40b879;
/* rgb */ color: rgb(64, 184, 121);
/* oklch */ color: oklch(70.0% 0.142 156.5);
Tailwind
colors: {
  custom: {
    50: '#82cea0',
    500: '#40b879',
    950: '#000000',
  },
}
SCSS
$custom: #40b879;
$custom-light: #82cea0;
$custom-dark: #000000;
JSON
{
  "hex": "#40b879",
  "rgb": {
    "r": 64,
    "g": 184,
    "b": 121
  },
  "hsl": {
    "h": 148.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.69973,
    "c": 0.1418,
    "h": 156.5
  },
  "luminance": 0.36751
}

Semantic roles & 50–950 ramp

primary
#40B879
secondary
#C78DAB
accent
#5097D8
background
#F8FCF9
surface
#F0F9F2
border
#CBD2CC
text
#0C140E
muted
#7D827E

Preview Lab

Preview with #40B879

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

Preview Lab → · Contrast checker → · Palette generator →

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