#D40DAA

#d40daa ≈ Medium Violet Red

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

#d40daa is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 83.14% red, 5.1% green and 66.67% blue; printed in CMYK it uses 0% cyan, 93.87% magenta, 19.81% yellow and 16.86% black. Its hue angle is 312.66°, with 88.44% saturation and 44.12% 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.68.

Description generated from the measured properties of this color.

Conversions of #d40daa 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 #a35b8c ≈ 0.001% of males
Protanopia #2961ad ≈ 1.01% of males
Deuteranopia #6d7da6 ≈ 1.27% of males
Tritanopia #e11c64 ≈ 0.0001% of males
Protanomaly #8f4cac ≈ 1.08% of males
Deuteranomaly #a163a8 ≈ 4.63% of males
Tritanomaly #dc1786 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d40daa {
  color: #d40daa;
}
Background
.bg-d40daa {
  background-color: #d40daa;
  color: #ffffff;
}
Border
.border-d40daa {
  border: 2px solid #d40daa;
}
CSS variables
:root {
  --color-primary: #d40daa;
  --color-primary-rgb: 212 13 170;
  --color-primary-hsl: 313 88% 44%;
}
Gradient
.gradient-d40daa {
  background: linear-gradient(135deg, #d40daa, #d40d47);
}
Colored shadow
.shadow-d40daa {
  box-shadow: 0 8px 24px rgb(212 13 170 / 0.35);
}

Medium Violet Red
#d40daa  rgb(212, 13, 170)  hsl(313, 88%, 44%)  Medium Violet Red
#0dd437  rgb(13, 212, 55)  hsl(133, 88%, 44%)  Lime Green
#aad40d  rgb(170, 212, 13)  hsl(73, 88%, 44%)  Yellow Green
#0daad4  rgb(13, 170, 212)  hsl(193, 88%, 44%)  Bondi Blue