#F540CB

#f540cb ≈ Shocking Pink

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

#f540cb 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 79.61% blue; printed in CMYK it uses 0% cyan, 73.88% magenta, 17.14% yellow and 3.92% black. Its hue angle is 313.92°, 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.48:1 (WCAG AA). The closest named color is Shocking Pink (#fc0fc0), ΔE 3.31.

Description generated from the measured properties of this color.

Conversions of #f540cb 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.2739

Readable text 3.24:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.48:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #8f8f8f ≈ 0.003% of males
Achromatomaly #c077aa ≈ 0.001% of males
Protanopia #4b7dcf ≈ 1.01% of males
Deuteranopia #8799c7 ≈ 1.27% of males
Tritanopia #ff4881 ≈ 0.0001% of males
Protanomaly #ab6acd ≈ 1.08% of males
Deuteranomaly #bd7fc9 ≈ 4.63% of males
Tritanomaly #fe45a4 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Shocking Pink
#f540cb  rgb(245, 64, 203)  hsl(314, 90%, 61%)  Shocking Pink
#40f56a  rgb(64, 245, 106)  hsl(134, 90%, 61%)  Spring Green
#cbf540  rgb(203, 245, 64)  hsl(74, 90%, 61%)  Electric Lime
#40cbf5  rgb(64, 203, 245)  hsl(194, 90%, 61%)  Sky Blue