#C40FA3

#c40fa3 ≈ Medium Violet Red

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

#c40fa3 is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 76.86% red, 5.88% green and 63.92% blue; printed in CMYK it uses 0% cyan, 92.35% magenta, 16.84% yellow and 23.14% black. Its hue angle is 310.94°, with 85.78% 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 5.32:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.15.

Description generated from the measured properties of this color.

Conversions of #c40fa3 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.1472

Readable text 5.32:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.94:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6b6b6b ≈ 0.003% of males
Achromatomaly #975585 ≈ 0.001% of males
Protanopia #1f5aa6 ≈ 1.01% of males
Deuteranopia #62749f ≈ 1.27% of males
Tritanopia #cf2160 ≈ 0.0001% of males
Protanomaly #8447a5 ≈ 1.08% of males
Deuteranomaly #945ca1 ≈ 4.63% of males
Tritanomaly #cb1b80 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c40fa3 {
  color: #c40fa3;
}
Background
.bg-c40fa3 {
  background-color: #c40fa3;
  color: #ffffff;
}
Border
.border-c40fa3 {
  border: 2px solid #c40fa3;
}
CSS variables
:root {
  --color-primary: #c40fa3;
  --color-primary-rgb: 196 15 163;
  --color-primary-hsl: 311 86% 41%;
}
Gradient
.gradient-c40fa3 {
  background: linear-gradient(135deg, #c40fa3, #c40f48);
}
Colored shadow
.shadow-c40fa3 {
  box-shadow: 0 8px 24px rgb(196 15 163 / 0.35);
}

Medium Violet Red
#c40fa3  rgb(196, 15, 163)  hsl(311, 86%, 41%)  Medium Violet Red
#0fc430  rgb(15, 196, 48)  hsl(131, 86%, 41%)  Lime Green
#a3c40f  rgb(163, 196, 15)  hsl(71, 86%, 41%)  Yellow Green
#0fa3c4  rgb(15, 163, 196)  hsl(191, 86%, 41%)  Bondi Blue