#A40FEC

#a40fec ≈ Vivid Violet

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Cool

#a40fec is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 64.31% red, 5.88% green and 92.55% blue; printed in CMYK it uses 30.51% cyan, 93.64% magenta, 0% yellow and 7.45% black. Its hue angle is 280.45°, with 88.05% saturation and 49.22% lightness in HSL. It is a cool color, 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 5.44:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 2.4.

Description generated from the measured properties of this color.

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

Readable text 5.44:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.86:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6a6a6a ≈ 0.003% of males
Achromatomaly #8554ae ≈ 0.001% of males
Protanopia #0065f1 ≈ 1.01% of males
Deuteranopia #006be8 ≈ 1.27% of males
Tritanopia #98598b ≈ 0.0001% of males
Protanomaly #5150ef ≈ 1.08% of males
Deuteranomaly #6055ea ≈ 4.63% of males
Tritanomaly #9d46ba ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-a40fec {
  color: #a40fec;
}
Background
.bg-a40fec {
  background-color: #a40fec;
  color: #ffffff;
}
Border
.border-a40fec {
  border: 2px solid #a40fec;
}
CSS variables
:root {
  --color-primary: #a40fec;
  --color-primary-rgb: 164 15 236;
  --color-primary-hsl: 280 88% 49%;
}
Gradient
.gradient-a40fec {
  background: linear-gradient(135deg, #a40fec, #ec0fc6);
}
Colored shadow
.shadow-a40fec {
  box-shadow: 0 8px 24px rgb(164 15 236 / 0.35);
}

Vivid Violet
#a40fec  rgb(164, 15, 236)  hsl(280, 88%, 49%)  Vivid Violet
#57ec0f  rgb(87, 236, 15)  hsl(100, 88%, 49%)  Harlequin
#eca40f  rgb(236, 164, 15)  hsl(40, 88%, 49%)  Marigold
#0feca4  rgb(15, 236, 164)  hsl(160, 88%, 49%)  Medium Spring Green