#D311AB

#d311ab ≈ Medium Violet Red

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Balanced

#d311ab is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 82.75% red, 6.67% green and 67.06% blue; printed in CMYK it uses 0% cyan, 91.94% magenta, 18.96% yellow and 17.25% black. Its hue angle is 312.37°, with 85.09% saturation and 44.71% 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 4.73:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.85.

Description generated from the measured properties of this color.

Conversions of #d311ab 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.1719

Readable text 4.73:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.44:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #737373 ≈ 0.003% of males
Achromatomaly #a25b8d ≈ 0.001% of males
Protanopia #2861ae ≈ 1.01% of males
Deuteranopia #6c7da7 ≈ 1.27% of males
Tritanopia #e02065 ≈ 0.0001% of males
Protanomaly #8f4dad ≈ 1.08% of males
Deuteranomaly #a063a9 ≈ 4.63% of males
Tritanomaly #db1b87 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d311ab {
  color: #d311ab;
}
Background
.bg-d311ab {
  background-color: #d311ab;
  color: #ffffff;
}
Border
.border-d311ab {
  border: 2px solid #d311ab;
}
CSS variables
:root {
  --color-primary: #d311ab;
  --color-primary-rgb: 211 17 171;
  --color-primary-hsl: 312 85% 45%;
}
Gradient
.gradient-d311ab {
  background: linear-gradient(135deg, #d311ab, #d3114a);
}
Colored shadow
.shadow-d311ab {
  box-shadow: 0 8px 24px rgb(211 17 171 / 0.35);
}

Medium Violet Red
#d311ab  rgb(211, 17, 171)  hsl(312, 85%, 45%)  Medium Violet Red
#11d339  rgb(17, 211, 57)  hsl(132, 85%, 45%)  Lime Green
#abd311  rgb(171, 211, 17)  hsl(72, 85%, 45%)  Yellow Green
#11abd3  rgb(17, 171, 211)  hsl(192, 85%, 45%)  Bondi Blue