#C31C8A

#c31c8a ≈ Medium Violet Red

  • rose
  • Lightness: medium
  • Saturation: strong
  • Balanced

#c31c8a is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 76.47% red, 10.98% green and 54.12% blue; printed in CMYK it uses 0% cyan, 85.64% magenta, 29.23% yellow and 23.53% black. Its hue angle is 320.48°, with 74.89% saturation and 43.73% lightness in HSL. It sits between warm and cool, and is often associated with romance, playfulness and affection. Designers typically use it for food and restaurant brands, sales and promotions and brand accents. White text on this color reaches a contrast ratio of 5.45:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 1.42.

Description generated from the measured properties of this color.

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

Readable text 5.45:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.85:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #696969 ≈ 0.003% of males
Achromatomaly #965578 ≈ 0.001% of males
Protanopia #3b588d ≈ 1.01% of males
Deuteranopia #6d7386 ≈ 1.27% of males
Tritanopia #d11154 ≈ 0.0001% of males
Protanomaly #88478c ≈ 1.08% of males
Deuteranomaly #975d88 ≈ 4.63% of males
Tritanomaly #cc166d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c31c8a {
  color: #c31c8a;
}
Background
.bg-c31c8a {
  background-color: #c31c8a;
  color: #ffffff;
}
Border
.border-c31c8a {
  border: 2px solid #c31c8a;
}
CSS variables
:root {
  --color-primary: #c31c8a;
  --color-primary-rgb: 195 28 138;
  --color-primary-hsl: 320 75% 44%;
}
Gradient
.gradient-c31c8a {
  background: linear-gradient(135deg, #c31c8a, #c31c37);
}
Colored shadow
.shadow-c31c8a {
  box-shadow: 0 8px 24px rgb(195 28 138 / 0.35);
}

Medium Violet Red
#c31c8a  rgb(195, 28, 138)  hsl(320, 75%, 44%)  Medium Violet Red
#1cc355  rgb(28, 195, 85)  hsl(140, 75%, 44%)  Emerald
#8ac31c  rgb(138, 195, 28)  hsl(80, 75%, 44%)  Yellow Green
#1c8ac3  rgb(28, 138, 195)  hsl(200, 75%, 44%)  Steel Blue