#cc228c ≈ Medium Violet Red
#cc228c is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 80% red, 13.33% green and 54.9% blue; printed in CMYK it uses 0% cyan, 83.33% magenta, 31.37% yellow and 20% black. Its hue angle is 322.59°, with 71.43% saturation and 46.67% lightness in HSL. It sits between warm and cool, and is often associated with romance, playfulness and affection. Designers typically use it for food and restaurant brands, sales and promotions and brand accents. White text on this color reaches a contrast ratio of 5.03:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 2.01.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc3399 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1587 |
Shades
#cc228c mixed progressively with black.
Tints
#cc228c mixed progressively with white.
Tones
#cc228c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cc228c {
color: #cc228c;
}
.bg-cc228c {
background-color: #cc228c;
color: #ffffff;
}
.border-cc228c {
border: 2px solid #cc228c;
}
:root {
--color-primary: #cc228c;
--color-primary-rgb: 204 34 140;
--color-primary-hsl: 323 71% 47%;
}
.gradient-cc228c {
background: linear-gradient(135deg, #cc228c, #cc2237);
}
.shadow-cc228c {
box-shadow: 0 8px 24px rgb(204 34 140 / 0.35);
}
Medium Violet Red
#cc228c rgb(204, 34, 140) hsl(323, 71%, 47%) Medium Violet Red
#22cc62 rgb(34, 204, 98) hsl(143, 71%, 47%) Emerald
#8ccc22 rgb(140, 204, 34) hsl(83, 71%, 47%) Yellow Green
#228ccc rgb(34, 140, 204) hsl(203, 71%, 47%) Steel Blue