#BA2C8E
#ba2c8e ≈ Medium Violet Red
#ba2c8e 属于品红系颜色(明度:中等,饱和度:较高)。 在 RGB 模型中,它由 72.94% 红、17.25% 绿和 55.69% 蓝组成;采用 CMYK 印刷时需要 0% 青、76.34% 品红、23.66% 黄和 27.06% 黑。 在 HSL 中,它的色相角为 318.59°,饱和度为 61.74%,明度为 45.1%。 它介于冷暖之间,常让人联想到创意、大胆和个性。 设计师常把它用于美妆和化妆品、创意工作室和品牌点缀色。 在此颜色上使用白色文字时,对比度为 5.47:1(WCAG AA)。 最接近的命名颜色是 Medium Violet Red(#c71585),ΔE 为 3.33。
根据此颜色的测量属性自动生成的描述。
| HEX | |
|---|---|
| RGB | |
| RGB 百分比 | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| 网页安全色 | #cc3399 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| 二进制 | |
| 十进制 | |
| 相对亮度 | 0.1419 |
暗调
#ba2c8e 逐步混入黑色。
亮调
#ba2c8e 逐步混入白色。
灰调
#ba2c8e 逐步混入灰色。
清晰易读的文字
5.47:1
AA ✓
AA Large ✓
AAA ✕
AAA Large ✓
清晰易读的文字
3.84:1
AA ✕
AA Large ✓
AAA ✕
AAA Large ✕
此颜色的文字
此颜色的背景
此颜色的边框
文字颜色
.text-ba2c8e {
color: #ba2c8e;
}
背景
.bg-ba2c8e {
background-color: #ba2c8e;
color: #ffffff;
}
边框
.border-ba2c8e {
border: 2px solid #ba2c8e;
}
CSS 变量
:root {
--color-primary: #ba2c8e;
--color-primary-rgb: 186 44 142;
--color-primary-hsl: 319 62% 45%;
}
渐变
.gradient-ba2c8e {
background: linear-gradient(135deg, #ba2c8e, #ba2c47);
}
彩色阴影
.shadow-ba2c8e {
box-shadow: 0 8px 24px rgb(186 44 142 / 0.35);
}
Medium Violet Red
#ba2c8e rgb(186, 44, 142) hsl(319, 62%, 45%) Medium Violet Red
#2cba58 rgb(44, 186, 88) hsl(139, 62%, 45%) Emerald
#8eba2c rgb(142, 186, 44) hsl(79, 62%, 45%) Apple Green
#2c8eba rgb(44, 142, 186) hsl(199, 62%, 45%) Bondi Blue