#CF04B2

#cf04b2 ≈ Medium Violet Red

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

#cf04b2 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 81.18% red, 1.57% green and 69.8% blue; printed in CMYK it uses 0% cyan, 98.07% magenta, 14.01% yellow and 18.82% black. Its hue angle is 308.57°, with 96.21% saturation and 41.37% 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. White text on this color reaches a contrast ratio of 4.87:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 8.02.

Description generated from the measured properties of this color.

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

Readable text 4.87:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.31:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #717171 ≈ 0.003% of males
Achromatomaly #9f5990 ≈ 0.001% of males
Protanopia #1060b6 ≈ 1.01% of males
Deuteranopia #647bae ≈ 1.27% of males
Tritanopia #da2468 ≈ 0.0001% of males
Protanomaly #8a4bb4 ≈ 1.08% of males
Deuteranomaly #9b61b0 ≈ 4.63% of males
Tritanomaly #d61b8c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-cf04b2 {
  color: #cf04b2;
}
Background
.bg-cf04b2 {
  background-color: #cf04b2;
  color: #ffffff;
}
Border
.border-cf04b2 {
  border: 2px solid #cf04b2;
}
CSS variables
:root {
  --color-primary: #cf04b2;
  --color-primary-rgb: 207 4 178;
  --color-primary-hsl: 309 96% 41%;
}
Gradient
.gradient-cf04b2 {
  background: linear-gradient(135deg, #cf04b2, #cf044c);
}
Colored shadow
.shadow-cf04b2 {
  box-shadow: 0 8px 24px rgb(207 4 178 / 0.35);
}

Medium Violet Red
#cf04b2  rgb(207, 4, 178)  hsl(309, 96%, 41%)  Medium Violet Red
#04cf21  rgb(4, 207, 33)  hsl(129, 96%, 41%)  Lime Green
#b2cf04  rgb(178, 207, 4)  hsl(69, 96%, 41%)  June Bud
#04b2cf  rgb(4, 178, 207)  hsl(189, 96%, 41%)  Moonstone Blue