#F540CF

#f540cf ≈ Shocking Pink

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

#f540cf is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 96.08% red, 25.1% green and 81.18% blue; printed in CMYK it uses 0% cyan, 73.88% magenta, 15.51% yellow and 3.92% black. Its hue angle is 312.6°, with 90.05% saturation and 60.59% 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.52:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 3.69.

Description generated from the measured properties of this color.

Conversions of #f540cf 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.2758

Readable text 3.22:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.52:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #8f8f8f ≈ 0.003% of males
Achromatomaly #c177ac ≈ 0.001% of males
Protanopia #487dd3 ≈ 1.01% of males
Deuteranopia #8699cb ≈ 1.27% of males
Tritanopia #ff4a84 ≈ 0.0001% of males
Protanomaly #aa6ad1 ≈ 1.08% of males
Deuteranomaly #bd7fcc ≈ 4.63% of males
Tritanomaly #fd46a7 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-f540cf {
  color: #f540cf;
}
Background
.bg-f540cf {
  background-color: #f540cf;
  color: #000000;
}
Border
.border-f540cf {
  border: 2px solid #f540cf;
}
CSS variables
:root {
  --color-primary: #f540cf;
  --color-primary-rgb: 245 64 207;
  --color-primary-hsl: 313 90% 61%;
}
Gradient
.gradient-f540cf {
  background: linear-gradient(135deg, #f540cf, #f54074);
}
Colored shadow
.shadow-f540cf {
  box-shadow: 0 8px 24px rgb(245 64 207 / 0.35);
}

Shocking Pink
#f540cf  rgb(245, 64, 207)  hsl(313, 90%, 61%)  Shocking Pink
#40f566  rgb(64, 245, 102)  hsl(133, 90%, 61%)  Spring Green
#cff540  rgb(207, 245, 64)  hsl(73, 90%, 61%)  Electric Lime
#40cff5  rgb(64, 207, 245)  hsl(193, 90%, 61%)  Sky Blue