#EF40C2

#ef40c2 ≈ Shocking Pink

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

#ef40c2 is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 93.73% red, 25.1% green and 76.08% blue; printed in CMYK it uses 0% cyan, 73.22% magenta, 18.83% yellow and 6.27% black. Its hue angle is 315.43°, with 84.54% saturation and 59.41% 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.18:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 2.76.

Description generated from the measured properties of this color.

Conversions of #ef40c2 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.2591

Readable text 3.4:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.18:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #8b8b8b ≈ 0.003% of males
Achromatomaly #bc74a4 ≈ 0.001% of males
Protanopia #4d79c6 ≈ 1.01% of males
Deuteranopia #8695be ≈ 1.27% of males
Tritanopia #fd457d ≈ 0.0001% of males
Protanomaly #a867c4 ≈ 1.08% of males
Deuteranomaly #ba7cc0 ≈ 4.63% of males
Tritanomaly #f8439d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ef40c2 {
  color: #ef40c2;
}
Background
.bg-ef40c2 {
  background-color: #ef40c2;
  color: #000000;
}
Border
.border-ef40c2 {
  border: 2px solid #ef40c2;
}
CSS variables
:root {
  --color-primary: #ef40c2;
  --color-primary-rgb: 239 64 194;
  --color-primary-hsl: 315 85% 59%;
}
Gradient
.gradient-ef40c2 {
  background: linear-gradient(135deg, #ef40c2, #ef406a);
}
Colored shadow
.shadow-ef40c2 {
  box-shadow: 0 8px 24px rgb(239 64 194 / 0.35);
}

Shocking Pink
#ef40c2  rgb(239, 64, 194)  hsl(315, 85%, 59%)  Shocking Pink
#40ef6d  rgb(64, 239, 109)  hsl(135, 85%, 59%)  Spring Green
#c2ef40  rgb(194, 239, 64)  hsl(75, 85%, 59%)  Electric Lime
#40c2ef  rgb(64, 194, 239)  hsl(195, 85%, 59%)  Deep Sky Blue