#CC2D8A
#cc2d8a ≈ Medium Violet Red
#cc2d8a 属于玫红系颜色(明度:中等,饱和度:较高)。 在 RGB 模型中,它由 80% 红、17.65% 绿和 54.12% 蓝组成;采用 CMYK 印刷时需要 0% 青、77.94% 品红、32.35% 黄和 20% 黑。 在 HSL 中,它的色相角为 324.91°,饱和度为 63.86%,明度为 48.82%。 它介于冷暖之间,常让人联想到浪漫、俏皮和爱意。 设计师常把它用于食品品牌和餐厅、促销和优惠和品牌点缀色。 在此颜色上使用白色文字时,对比度为 4.87:1(WCAG AA)。 最接近的命名颜色是 Medium Violet Red(#c71585),ΔE 为 2.97。
根据此颜色的测量属性自动生成的描述。
| HEX | |
|---|---|
| RGB | |
| RGB 百分比 | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| 网页安全色 | #cc3399 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| 二进制 | |
| 十进制 | |
| 相对亮度 | 0.1655 |
暗调
#cc2d8a 逐步混入黑色。
亮调
#cc2d8a 逐步混入白色。
灰调
#cc2d8a 逐步混入灰色。
清晰易读的文字
4.87:1
AA ✓
AA Large ✓
AAA ✕
AAA Large ✓
清晰易读的文字
4.31:1
AA ✕
AA Large ✓
AAA ✕
AAA Large ✕
此颜色的文字
此颜色的背景
此颜色的边框
文字颜色
.text-cc2d8a {
color: #cc2d8a;
}
背景
.bg-cc2d8a {
background-color: #cc2d8a;
color: #ffffff;
}
边框
.border-cc2d8a {
border: 2px solid #cc2d8a;
}
CSS 变量
:root {
--color-primary: #cc2d8a;
--color-primary-rgb: 204 45 138;
--color-primary-hsl: 325 64% 49%;
}
渐变
.gradient-cc2d8a {
background: linear-gradient(135deg, #cc2d8a, #cc2d3a);
}
彩色阴影
.shadow-cc2d8a {
box-shadow: 0 8px 24px rgb(204 45 138 / 0.35);
}
Medium Violet Red
#cc2d8a rgb(204, 45, 138) hsl(325, 64%, 49%) Medium Violet Red
#2dcc6f rgb(45, 204, 111) hsl(145, 64%, 49%) Emerald
#8acc2d rgb(138, 204, 45) hsl(85, 64%, 49%) Yellow Green
#2d8acc rgb(45, 138, 204) hsl(205, 64%, 49%) Bleu de France