#40C478#40C478

#40C478 is a light, vivid green. Relative luminance 0.419; OKLCH L 73.0% C 0.159 H 153.9°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#40C478
RGBrgb(64, 196, 120)
HSLhsl(145, 53%, 51%)
HSVhsv(145, 67%, 77%)
CMYKcmyk(67.3%, 0%, 38.8%, 23.1%)
CIE-LABlab(70.82, -52.82, 27.99)
CIE-LCHlch(70.82, 59.78, 152.08°)
OKLaboklab(73.03% -0.1427 0.0698)
OKLCHoklch(73.03% 0.159 153.9)
XYZxyz(25.2422, 41.9232, 24.5273)
Luminance0.4193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C478 #C4408C
analogous
#4AC440 #40C478 #40C4BA
triadic
#40C478 #7840C4 #C47840
tetradic
#40C478 #404AC4 #C4408C #C4BA40
square
#40C478 #404AC4 #C4408C #C4BA40
split-complementary
#40C478 #BA40C4 #C4404A
monochromatic
#20693F #2F985B #40C478 #6FD299 #9EE1BA

Accessibility & contrast

On white

2.24
#40C478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#40C478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C478
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C478#FFFFFF#000000##000000
##40C4781.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B473
Deuteranopia (green-blind)
#B3A97D
Tritanopia (blue-blind)
#00C2B1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #40c478;
/* rgb */ color: rgb(64, 196, 120);
/* oklch */ color: oklch(73.0% 0.159 153.9);
Tailwind
colors: {
  custom: {
    50: '#84d79f',
    500: '#40c478',
    950: '#000000',
  },
}
SCSS
$custom: #40c478;
$custom-light: #84d79f;
$custom-dark: #000000;
JSON
{
  "hex": "#40c478",
  "rgb": {
    "r": 64,
    "g": 196,
    "b": 120
  },
  "hsl": {
    "h": 145.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.73034,
    "c": 0.1589,
    "h": 153.9
  },
  "luminance": 0.41926
}

Semantic roles & 50–950 ramp

primary
#40C478
secondary
#CD93B4
accent
#4C9FDC
background
#F8FDF9
surface
#F0FAF2
border
#CBD3CC
text
#0C140E
muted
#7D837E

Preview Lab

Preview with #40C478

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

Preview Lab → · Contrast checker → · Palette generator →

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