#C40E8A

#c40e8a ≈ Medium Violet Red

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

#c40e8a 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.49% green and 54.12% blue; printed in CMYK it uses 0% cyan, 92.86% magenta, 29.59% yellow and 23.14% black. Its hue angle is 319.12°, with 86.67% saturation and 41.18% 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.56:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 1.68.

Description generated from the measured properties of this color.

Conversions of #c40e8a 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.1388

Readable text 5.56:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.78:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #686868 ≈ 0.003% of males
Achromatomaly #965277 ≈ 0.001% of males
Protanopia #36558d ≈ 1.01% of males
Deuteranopia #6c7286 ≈ 1.27% of males
Tritanopia #d20051 ≈ 0.0001% of males
Protanomaly #87438c ≈ 1.08% of males
Deuteranomaly #975b88 ≈ 4.63% of males
Tritanomaly #cd026c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c40e8a {
  color: #c40e8a;
}
Background
.bg-c40e8a {
  background-color: #c40e8a;
  color: #ffffff;
}
Border
.border-c40e8a {
  border: 2px solid #c40e8a;
}
CSS variables
:root {
  --color-primary: #c40e8a;
  --color-primary-rgb: 196 14 138;
  --color-primary-hsl: 319 87% 41%;
}
Gradient
.gradient-c40e8a {
  background: linear-gradient(135deg, #c40e8a, #c40e2f);
}
Colored shadow
.shadow-c40e8a {
  box-shadow: 0 8px 24px rgb(196 14 138 / 0.35);
}

Medium Violet Red
#c40e8a  rgb(196, 14, 138)  hsl(319, 87%, 41%)  Medium Violet Red
#0ec448  rgb(14, 196, 72)  hsl(139, 87%, 41%)  Lime Green
#8ac40e  rgb(138, 196, 14)  hsl(79, 87%, 41%)  Yellow Green
#0e8ac4  rgb(14, 138, 196)  hsl(199, 87%, 41%)  Steel Blue