#EA40CB

#ea40cb ≈ Shocking Pink

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

#ea40cb is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 91.76% red, 25.1% green and 79.61% blue; printed in CMYK it uses 0% cyan, 72.65% magenta, 13.25% yellow and 8.24% black. Its hue angle is 310.94°, with 80.19% saturation and 58.43% 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.09:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 3.78.

Description generated from the measured properties of this color.

Conversions of #ea40cb 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.2547

Readable text 3.45:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.09:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #8a8a8a ≈ 0.003% of males
Achromatomaly #b874a8 ≈ 0.001% of males
Protanopia #437acf ≈ 1.01% of males
Deuteranopia #7e93c7 ≈ 1.27% of males
Tritanopia #f64c81 ≈ 0.0001% of males
Protanomaly #a267cd ≈ 1.08% of males
Deuteranomaly #b47bc9 ≈ 4.63% of males
Tritanomaly #f147a4 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ea40cb {
  color: #ea40cb;
}
Background
.bg-ea40cb {
  background-color: #ea40cb;
  color: #000000;
}
Border
.border-ea40cb {
  border: 2px solid #ea40cb;
}
CSS variables
:root {
  --color-primary: #ea40cb;
  --color-primary-rgb: 234 64 203;
  --color-primary-hsl: 311 80% 58%;
}
Gradient
.gradient-ea40cb {
  background: linear-gradient(135deg, #ea40cb, #ea4076);
}
Colored shadow
.shadow-ea40cb {
  box-shadow: 0 8px 24px rgb(234 64 203 / 0.35);
}

Shocking Pink
#ea40cb  rgb(234, 64, 203)  hsl(311, 80%, 58%)  Shocking Pink
#40ea5f  rgb(64, 234, 95)  hsl(131, 80%, 58%)  Malachite
#cbea40  rgb(203, 234, 64)  hsl(71, 80%, 58%)  Pear
#40cbea  rgb(64, 203, 234)  hsl(191, 80%, 58%)  Sky Blue