#EC0CD2

#ec0cd2 ≈ Shocking Pink

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Balanced

#ec0cd2 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 92.55% red, 4.71% green and 82.35% blue; printed in CMYK it uses 0% cyan, 94.92% magenta, 11.02% yellow and 7.45% black. Its hue angle is 306.96°, with 90.32% saturation and 48.63% 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 5.55:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 4.82.

Description generated from the measured properties of this color.

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

Readable text 3.78:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.55:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #838383 ≈ 0.003% of males
Achromatomaly #b768a9 ≈ 0.001% of males
Protanopia #0070d6 ≈ 1.01% of males
Deuteranopia #718dce ≈ 1.27% of males
Tritanopia #f8337c ≈ 0.0001% of males
Protanomaly #9d59d5 ≈ 1.08% of males
Deuteranomaly #b070cf ≈ 4.63% of males
Tritanomaly #f328a6 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ec0cd2 {
  color: #ec0cd2;
}
Background
.bg-ec0cd2 {
  background-color: #ec0cd2;
  color: #000000;
}
Border
.border-ec0cd2 {
  border: 2px solid #ec0cd2;
}
CSS variables
:root {
  --color-primary: #ec0cd2;
  --color-primary-rgb: 236 12 210;
  --color-primary-hsl: 307 90% 49%;
}
Gradient
.gradient-ec0cd2 {
  background: linear-gradient(135deg, #ec0cd2, #ec0c62);
}
Colored shadow
.shadow-ec0cd2 {
  box-shadow: 0 8px 24px rgb(236 12 210 / 0.35);
}

Shocking Pink
#ec0cd2  rgb(236, 12, 210)  hsl(307, 90%, 49%)  Shocking Pink
#0cec26  rgb(12, 236, 38)  hsl(127, 90%, 49%)  Lime
#d2ec0c  rgb(210, 236, 12)  hsl(67, 90%, 49%)  Pear
#0cd2ec  rgb(12, 210, 236)  hsl(187, 90%, 49%)  Dark Turquoise