#C304FF

#c304ff ≈ Electric Purple

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

#c304ff is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 76.47% red, 1.57% green and 100% blue; printed in CMYK it uses 23.53% cyan, 98.43% magenta, 0% yellow and 0% black. Its hue angle is 285.66°, with 100% saturation and 50.78% 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 4.78:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 0.83.

Description generated from the measured properties of this color.

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

Readable text 4.39:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.78:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #787878 ≈ 0.003% of males
Achromatomaly #9c5fbe ≈ 0.001% of males
Protanopia #0070ff ≈ 1.01% of males
Deuteranopia #007cfb ≈ 1.27% of males
Tritanopia #bd5c97 ≈ 0.0001% of males
Protanomaly #6b58ff ≈ 1.08% of males
Deuteranomaly #7c62fc ≈ 4.63% of males
Tritanomaly #bf48c9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c304ff {
  color: #c304ff;
}
Background
.bg-c304ff {
  background-color: #c304ff;
  color: #000000;
}
Border
.border-c304ff {
  border: 2px solid #c304ff;
}
CSS variables
:root {
  --color-primary: #c304ff;
  --color-primary-rgb: 195 4 255;
  --color-primary-hsl: 286 100% 51%;
}
Gradient
.gradient-c304ff {
  background: linear-gradient(135deg, #c304ff, #ff04bd);
}
Colored shadow
.shadow-c304ff {
  box-shadow: 0 8px 24px rgb(195 4 255 / 0.35);
}

Electric Purple
#c304ff  rgb(195, 4, 255)  hsl(286, 100%, 51%)  Electric Purple
#40ff04  rgb(64, 255, 4)  hsl(106, 100%, 51%)  Harlequin
#ffc304  rgb(255, 195, 4)  hsl(46, 100%, 51%)  Mikado Yellow
#04ffc3  rgb(4, 255, 195)  hsl(166, 100%, 51%)  Aquamarine