#C40CA2

#c40ca2 ≈ Medium Violet Red

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

#c40ca2 is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 76.86% red, 4.71% green and 63.53% blue; printed in CMYK it uses 0% cyan, 93.88% magenta, 17.35% yellow and 23.14% black. Its hue angle is 311.09°, with 88.46% saturation and 40.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. White text on this color reaches a contrast ratio of 5.36:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.01.

Description generated from the measured properties of this color.

Conversions of #c40ca2 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.1461

Readable text 5.36:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.92:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6b6b6b ≈ 0.003% of males
Achromatomaly #975484 ≈ 0.001% of males
Protanopia #1f5aa5 ≈ 1.01% of males
Deuteranopia #63749e ≈ 1.27% of males
Tritanopia #d01f5f ≈ 0.0001% of males
Protanomaly #8447a4 ≈ 1.08% of males
Deuteranomaly #945ca0 ≈ 4.63% of males
Tritanomaly #cb197f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Violet Red
#c40ca2  rgb(196, 12, 162)  hsl(311, 88%, 41%)  Medium Violet Red
#0cc42e  rgb(12, 196, 46)  hsl(131, 88%, 41%)  Lime Green
#a2c40c  rgb(162, 196, 12)  hsl(71, 88%, 41%)  Yellow Green
#0ca2c4  rgb(12, 162, 196)  hsl(191, 88%, 41%)  Bondi Blue