#AF0C8A

#af0c8a ≈ Medium Violet Red

  • magenta
  • Lightness: low
  • Saturation: strong
  • Balanced

#af0c8a is a color from the magenta family, with low lightness and strong saturation. In the RGB model it is made of 68.63% red, 4.71% green and 54.12% blue; printed in CMYK it uses 0% cyan, 93.14% magenta, 21.14% yellow and 31.37% black. Its hue angle is 313.62°, with 87.17% saturation and 36.67% 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 6.48:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.23.

Description generated from the measured properties of this color.

Conversions of #af0c8a into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#990099
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1121

Readable text 6.48:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.24:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5e5e5e ≈ 0.003% of males
Achromatomaly #864a72 ≈ 0.001% of males
Protanopia #234f8d ≈ 1.01% of males
Deuteranopia #5a6787 ≈ 1.27% of males
Tritanopia #ba1551 ≈ 0.0001% of males
Protanomaly #763e8c ≈ 1.08% of males
Deuteranomaly #855188 ≈ 4.63% of males
Tritanomaly #b6126c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-af0c8a {
  color: #af0c8a;
}
Background
.bg-af0c8a {
  background-color: #af0c8a;
  color: #ffffff;
}
Border
.border-af0c8a {
  border: 2px solid #af0c8a;
}
CSS variables
:root {
  --color-primary: #af0c8a;
  --color-primary-rgb: 175 12 138;
  --color-primary-hsl: 314 87% 37%;
}
Gradient
.gradient-af0c8a {
  background: linear-gradient(135deg, #af0c8a, #af0c39);
}
Colored shadow
.shadow-af0c8a {
  box-shadow: 0 8px 24px rgb(175 12 138 / 0.35);
}

Medium Violet Red
#af0c8a  rgb(175, 12, 138)  hsl(314, 87%, 37%)  Medium Violet Red
#0caf31  rgb(12, 175, 49)  hsl(134, 87%, 37%)  Kelly Green
#8aaf0c  rgb(138, 175, 12)  hsl(74, 87%, 37%)  Apple Green
#0c8aaf  rgb(12, 138, 175)  hsl(194, 87%, 37%)  Bondi Blue