#D406A2

#d406a2 ≈ Medium Violet Red

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

#d406a2 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 83.14% red, 2.35% green and 63.53% blue; printed in CMYK it uses 0% cyan, 97.17% magenta, 23.58% yellow and 16.86% black. Its hue angle is 314.56°, with 94.5% saturation and 42.75% 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.83:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 5.34.

Description generated from the measured properties of this color.

Conversions of #d406a2 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.1674

Readable text 4.83:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.35:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #727272 ≈ 0.003% of males
Achromatomaly #a25a88 ≈ 0.001% of males
Protanopia #2f5ea5 ≈ 1.01% of males
Deuteranopia #707c9e ≈ 1.27% of males
Tritanopia #e20b5f ≈ 0.0001% of males
Protanomaly #904aa4 ≈ 1.08% of males
Deuteranomaly #a262a0 ≈ 4.63% of males
Tritanomaly #dd097f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d406a2 {
  color: #d406a2;
}
Background
.bg-d406a2 {
  background-color: #d406a2;
  color: #ffffff;
}
Border
.border-d406a2 {
  border: 2px solid #d406a2;
}
CSS variables
:root {
  --color-primary: #d406a2;
  --color-primary-rgb: 212 6 162;
  --color-primary-hsl: 315 95% 43%;
}
Gradient
.gradient-d406a2 {
  background: linear-gradient(135deg, #d406a2, #d4063b);
}
Colored shadow
.shadow-d406a2 {
  box-shadow: 0 8px 24px rgb(212 6 162 / 0.35);
}

Medium Violet Red
#d406a2  rgb(212, 6, 162)  hsl(315, 95%, 43%)  Medium Violet Red
#06d438  rgb(6, 212, 56)  hsl(135, 95%, 43%)  Lime Green
#a2d406  rgb(162, 212, 6)  hsl(75, 95%, 43%)  Yellow Green
#06a2d4  rgb(6, 162, 212)  hsl(195, 95%, 43%)  Carolina Blue