#40B478#40B478

#40B478 is a light, vivid green. Relative luminance 0.351; OKLCH L 68.9% C 0.137 H 157.0°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#40B478
RGBrgb(64, 180, 120)
HSLhsl(149, 48%, 48%)
HSVhsv(149, 64%, 71%)
CMYKcmyk(64.4%, 0%, 33.3%, 29.4%)
CIE-LABlab(65.82, -46.48, 21.28)
CIE-LCHlch(65.82, 51.12, 155.40°)
OKLaboklab(68.92% -0.1263 0.0537)
OKLCHoklch(68.92% 0.137 157)
XYZxyz(21.8238, 35.0863, 23.3879)
Luminance0.3509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B478 #B4407C
analogous
#42B440 #40B478 #40B4B2
triadic
#40B478 #7840B4 #B47840
tetradic
#40B478 #4042B4 #B4407C #B4B240
square
#40B478 #4042B4 #B4407C #B4B240
split-complementary
#40B478 #B240B4 #B44042
monochromatic
#205A3C #30875A #40B478 #68C997 #95D9B6

Accessibility & contrast

On white

2.62
#40B478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#40B478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B478
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B478#FFFFFF#000000##000000
##40B4781.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A674
Deuteranopia (green-blind)
#A49C7C
Tritanopia (blue-blind)
#00B3A4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #40b478;
/* rgb */ color: rgb(64, 180, 120);
/* oklch */ color: oklch(68.9% 0.137 157.0);
Tailwind
colors: {
  custom: {
    50: '#81cb9f',
    500: '#40b478',
    950: '#000000',
  },
}
SCSS
$custom: #40b478;
$custom-light: #81cb9f;
$custom-dark: #000000;
JSON
{
  "hex": "#40b478",
  "rgb": {
    "r": 64,
    "g": 180,
    "b": 120
  },
  "hsl": {
    "h": 148.966,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.68922,
    "c": 0.13725,
    "h": 157
  },
  "luminance": 0.35089
}

Semantic roles & 50–950 ramp

primary
#40B478
secondary
#C58BA9
accent
#5196D7
background
#F8FCF9
surface
#F0F9F2
border
#CBD2CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #40B478

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

Preview Lab → · Contrast checker → · Palette generator →

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