#D31FAC

#d31fac ≈ Medium Violet Red

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

#d31fac is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 82.75% red, 12.16% green and 67.45% blue; printed in CMYK it uses 0% cyan, 85.31% magenta, 18.48% yellow and 17.25% black. Its hue angle is 313°, with 74.38% saturation and 47.45% 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 brand accents. White text on this color reaches a contrast ratio of 4.6:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 7.17.

Description generated from the measured properties of this color.

Conversions of #d31fac 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.1781

Readable text 4.6:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.56:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #757575 ≈ 0.003% of males
Achromatomaly #a35e8e ≈ 0.001% of males
Protanopia #3064af ≈ 1.01% of males
Deuteranopia #6e7fa8 ≈ 1.27% of males
Tritanopia #e02968 ≈ 0.0001% of males
Protanomaly #9051ae ≈ 1.08% of males
Deuteranomaly #a166aa ≈ 4.63% of males
Tritanomaly #db2688 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d31fac {
  color: #d31fac;
}
Background
.bg-d31fac {
  background-color: #d31fac;
  color: #ffffff;
}
Border
.border-d31fac {
  border: 2px solid #d31fac;
}
CSS variables
:root {
  --color-primary: #d31fac;
  --color-primary-rgb: 211 31 172;
  --color-primary-hsl: 313 74% 47%;
}
Gradient
.gradient-d31fac {
  background: linear-gradient(135deg, #d31fac, #d31f52);
}
Colored shadow
.shadow-d31fac {
  box-shadow: 0 8px 24px rgb(211 31 172 / 0.35);
}

Medium Violet Red
#d31fac  rgb(211, 31, 172)  hsl(313, 74%, 47%)  Medium Violet Red
#1fd346  rgb(31, 211, 70)  hsl(133, 74%, 47%)  Malachite
#acd31f  rgb(172, 211, 31)  hsl(73, 74%, 47%)  Yellow Green
#1facd3  rgb(31, 172, 211)  hsl(193, 74%, 47%)  Moonstone Blue