#EC40BA

#ec40ba ≈ Shocking Pink

  • magenta
  • Lightness: medium
  • Saturation: strong
  • Balanced

#ec40ba is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 92.55% red, 25.1% green and 72.94% blue; printed in CMYK it uses 0% cyan, 72.88% magenta, 21.19% yellow and 7.45% black. Its hue angle is 317.44°, with 81.9% saturation and 58.82% lightness in HSL. It sits between warm and cool, and is often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and call-to-action buttons. Black text on this color reaches a contrast ratio of 6.01:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 2.86.

Description generated from the measured properties of this color.

Conversions of #ec40ba into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#ff33cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.2504

Readable text 3.49:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.01:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #898989 ≈ 0.003% of males
Achromatomaly #b9739f ≈ 0.001% of males
Protanopia #5077bd ≈ 1.01% of males
Deuteranopia #8693b6 ≈ 1.27% of males
Tritanopia #fb4278 ≈ 0.0001% of males
Protanomaly #a766bc ≈ 1.08% of males
Deuteranomaly #b87ab8 ≈ 4.63% of males
Tritanomaly #f54197 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ec40ba {
  color: #ec40ba;
}
Background
.bg-ec40ba {
  background-color: #ec40ba;
  color: #000000;
}
Border
.border-ec40ba {
  border: 2px solid #ec40ba;
}
CSS variables
:root {
  --color-primary: #ec40ba;
  --color-primary-rgb: 236 64 186;
  --color-primary-hsl: 317 82% 59%;
}
Gradient
.gradient-ec40ba {
  background: linear-gradient(135deg, #ec40ba, #ec4064);
}
Colored shadow
.shadow-ec40ba {
  box-shadow: 0 8px 24px rgb(236 64 186 / 0.35);
}

Shocking Pink
#ec40ba  rgb(236, 64, 186)  hsl(317, 82%, 59%)  Shocking Pink
#40ec72  rgb(64, 236, 114)  hsl(137, 82%, 59%)  Spring Green
#baec40  rgb(186, 236, 64)  hsl(77, 82%, 59%)  Inchworm
#40baec  rgb(64, 186, 236)  hsl(197, 82%, 59%)  Deep Sky Blue