#D40BAD

#d40bad ≈ Medium Violet Red

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

#d40bad is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 83.14% red, 4.31% green and 67.84% blue; printed in CMYK it uses 0% cyan, 94.81% magenta, 18.4% yellow and 16.86% black. Its hue angle is 311.64°, with 90.13% saturation and 43.73% 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.72:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 7.16.

Description generated from the measured properties of this color.

Conversions of #d40bad 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.1725

Readable text 4.72:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.45:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #737373 ≈ 0.003% of males
Achromatomaly #a35b8e ≈ 0.001% of males
Protanopia #2561b0 ≈ 1.01% of males
Deuteranopia #6c7da9 ≈ 1.27% of males
Tritanopia #e11e66 ≈ 0.0001% of males
Protanomaly #8f4caf ≈ 1.08% of males
Deuteranomaly #a063ab ≈ 4.63% of males
Tritanomaly #dc1888 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d40bad {
  color: #d40bad;
}
Background
.bg-d40bad {
  background-color: #d40bad;
  color: #ffffff;
}
Border
.border-d40bad {
  border: 2px solid #d40bad;
}
CSS variables
:root {
  --color-primary: #d40bad;
  --color-primary-rgb: 212 11 173;
  --color-primary-hsl: 312 90% 44%;
}
Gradient
.gradient-d40bad {
  background: linear-gradient(135deg, #d40bad, #d40b49);
}
Colored shadow
.shadow-d40bad {
  box-shadow: 0 8px 24px rgb(212 11 173 / 0.35);
}

Medium Violet Red
#d40bad  rgb(212, 11, 173)  hsl(312, 90%, 44%)  Medium Violet Red
#0bd432  rgb(11, 212, 50)  hsl(132, 90%, 44%)  Lime Green
#add40b  rgb(173, 212, 11)  hsl(72, 90%, 44%)  Yellow Green
#0badd4  rgb(11, 173, 212)  hsl(192, 90%, 44%)  Moonstone Blue