#C40BA7

#c40ba7 ≈ Medium Violet Red

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

#c40ba7 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.31% green and 65.49% blue; printed in CMYK it uses 0% cyan, 94.39% magenta, 14.8% yellow and 23.14% black. Its hue angle is 309.41°, with 89.37% saturation and 40.59% 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.31:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.87.

Description generated from the measured properties of this color.

Conversions of #c40ba7 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.1477

Readable text 5.31:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.95:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6b6b6b ≈ 0.003% of males
Achromatomaly #975587 ≈ 0.001% of males
Protanopia #175baa ≈ 1.01% of males
Deuteranopia #6074a3 ≈ 1.27% of males
Tritanopia #cf2362 ≈ 0.0001% of males
Protanomaly #8347a9 ≈ 1.08% of males
Deuteranomaly #935ca5 ≈ 4.63% of males
Tritanomaly #cb1c83 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c40ba7 {
  color: #c40ba7;
}
Background
.bg-c40ba7 {
  background-color: #c40ba7;
  color: #ffffff;
}
Border
.border-c40ba7 {
  border: 2px solid #c40ba7;
}
CSS variables
:root {
  --color-primary: #c40ba7;
  --color-primary-rgb: 196 11 167;
  --color-primary-hsl: 309 89% 41%;
}
Gradient
.gradient-c40ba7 {
  background: linear-gradient(135deg, #c40ba7, #c40b4a);
}
Colored shadow
.shadow-c40ba7 {
  box-shadow: 0 8px 24px rgb(196 11 167 / 0.35);
}

Medium Violet Red
#c40ba7  rgb(196, 11, 167)  hsl(309, 89%, 41%)  Medium Violet Red
#0bc428  rgb(11, 196, 40)  hsl(129, 89%, 41%)  Lime Green
#a7c40b  rgb(167, 196, 11)  hsl(69, 89%, 41%)  Yellow Green
#0ba7c4  rgb(11, 167, 196)  hsl(189, 89%, 41%)  Bondi Blue