#D304EF

#d304ef ≈ Electric Purple

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

#d304ef is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 82.75% red, 1.57% green and 93.73% blue; printed in CMYK it uses 11.72% cyan, 98.33% magenta, 0% yellow and 6.27% black. Its hue angle is 292.85°, with 96.71% saturation and 47.65% 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.03:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.34.

Description generated from the measured properties of this color.

Conversions of #d304ef 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.2017

Readable text 4.17:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.03:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7c7c7c ≈ 0.003% of males
Achromatomaly #a662b6 ≈ 0.001% of males
Protanopia #0070f4 ≈ 1.01% of males
Deuteranopia #3b82eb ≈ 1.27% of males
Tritanopia #d54f8d ≈ 0.0001% of males
Protanomaly #8058f2 ≈ 1.08% of males
Deuteranomaly #9267ec ≈ 4.63% of males
Tritanomaly #d43dbc ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d304ef {
  color: #d304ef;
}
Background
.bg-d304ef {
  background-color: #d304ef;
  color: #000000;
}
Border
.border-d304ef {
  border: 2px solid #d304ef;
}
CSS variables
:root {
  --color-primary: #d304ef;
  --color-primary-rgb: 211 4 239;
  --color-primary-hsl: 293 97% 48%;
}
Gradient
.gradient-d304ef {
  background: linear-gradient(135deg, #d304ef, #ef0496);
}
Colored shadow
.shadow-d304ef {
  box-shadow: 0 8px 24px rgb(211 4 239 / 0.35);
}

Electric Purple
#d304ef  rgb(211, 4, 239)  hsl(293, 97%, 48%)  Electric Purple
#20ef04  rgb(32, 239, 4)  hsl(113, 97%, 48%)  Lime
#efd304  rgb(239, 211, 4)  hsl(53, 97%, 48%)  Citrine
#04efd3  rgb(4, 239, 211)  hsl(173, 97%, 48%)  Turquoise