#D40DB2

#d40db2 ≈ Medium Violet Red

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

#d40db2 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 69.8% blue; printed in CMYK it uses 0% cyan, 93.87% magenta, 16.04% yellow and 16.86% black. Its hue angle is 310.25°, 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.67:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 7.97.

Description generated from the measured properties of this color.

Conversions of #d40db2 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.175

Readable text 4.67:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.5:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #747474 ≈ 0.003% of males
Achromatomaly #a35c91 ≈ 0.001% of males
Protanopia #1e62b6 ≈ 1.01% of males
Deuteranopia #6a7eae ≈ 1.27% of males
Tritanopia #e02469 ≈ 0.0001% of males
Protanomaly #8e4eb4 ≈ 1.08% of males
Deuteranomaly #a064b0 ≈ 4.63% of males
Tritanomaly #db1d8c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Violet Red
#d40db2  rgb(212, 13, 178)  hsl(310, 88%, 44%)  Medium Violet Red
#0dd42f  rgb(13, 212, 47)  hsl(130, 88%, 44%)  Lime Green
#b2d40d  rgb(178, 212, 13)  hsl(70, 88%, 44%)  June Bud
#0db2d4  rgb(13, 178, 212)  hsl(190, 88%, 44%)  Moonstone Blue