#EF40D4

#ef40d4 ≈ Shocking Pink

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

#ef40d4 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 83.14% blue; printed in CMYK it uses 0% cyan, 73.22% magenta, 11.3% yellow and 6.27% black. Its hue angle is 309.26°, 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.35:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 4.45.

Description generated from the measured properties of this color.

Conversions of #ef40d4 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.2677

Readable text 3.3:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.35:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #8d8d8d ≈ 0.003% of males
Achromatomaly #bd76ae ≈ 0.001% of males
Protanopia #407dd8 ≈ 1.01% of males
Deuteranopia #7f97d0 ≈ 1.27% of males
Tritanopia #fb4f86 ≈ 0.0001% of males
Protanomaly #a56ad6 ≈ 1.08% of males
Deuteranomaly #b77dd2 ≈ 4.63% of males
Tritanomaly #f649ab ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Shocking Pink
#ef40d4  rgb(239, 64, 212)  hsl(309, 85%, 59%)  Shocking Pink
#40ef5b  rgb(64, 239, 91)  hsl(129, 85%, 59%)  Spring Green
#d4ef40  rgb(212, 239, 64)  hsl(69, 85%, 59%)  Pear
#40d4ef  rgb(64, 212, 239)  hsl(189, 85%, 59%)  Sky Blue