#af0c8a ≈ Medium Violet Red
#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.
| 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 luminance | 0.1121 |
Shades
#af0c8a mixed progressively with black.
Tints
#af0c8a mixed progressively with white.
Tones
#af0c8a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af0c8a {
color: #af0c8a;
}
.bg-af0c8a {
background-color: #af0c8a;
color: #ffffff;
}
.border-af0c8a {
border: 2px solid #af0c8a;
}
:root {
--color-primary: #af0c8a;
--color-primary-rgb: 175 12 138;
--color-primary-hsl: 314 87% 37%;
}
.gradient-af0c8a {
background: linear-gradient(135deg, #af0c8a, #af0c39);
}
.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